• Resolved MrYess

    (@mryess)


    Hello! How to turn off breadcrumbs from rank match on vendors pages ? thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author MultiVendorX

    (@wcmp)

    Hi there,

    Thanks for your question!

    To clarify, the vendor shop page in MultiVendorX is treated as a custom taxonomy archive, specifically:
    is_tax( ‘dc_vendor_shop’ ).

    If you’re seeing breadcrumbs from Rank Math on these pages and would like to disable them, the first step is to check within the Rank Math settings if there’s an option to disable breadcrumbs on custom taxonomy pages.

    If such a setting isn’t available, the next best option is to contact the Rank Math support team directly. Since Rank Math is a third-party plugin, they’re in the best position to guide you with an accurate solution.

    That said, while looking through their documentation, we came across the following code snippet that might help disable breadcrumbs conditionally:

    add_filter( 'rank_math/frontend/breadcrumbs', function( $crumbs ) {
    if ( is_tax( 'dc_vendor_shop' ) ) {
    return []; // Removes breadcrumbs on vendor pages
    }
    return $crumbs;
    });

    Important: Please note that we are not affiliated with the Rank Math team, and we haven’t tested this code ourselves. This snippet is shared for reference only, and we recommend confirming its safety and effectiveness with Rank Math support before using it on a live site.

    Hope this points you in the right direction!

    Thread Starter MrYess

    (@mryess)

    Thanks But don’t work =(

    Plugin Support mouindi

    (@mouindi)

    Hi @mryess,

    Thanks for your response.

    As you can see, we’ve enabled breadcrumbs globally, but on the vendor shop page, they still don’t appear. You can see an example of that here: https://multivendordemo.com/mvx/vendor/new_vendor/

    Since this may require a closer look at your specific setup, could you please reach out to us via our support forums so we can assist you further?

    We’ll be happy to help you get this sorted!

    Best regards,
    Moumita

    Thread Starter MrYess

    (@mryess)

    Thanks! I found a working css:

    body.tax-dc_vendor_shop .rank-math-breadcrumb {
    display: none !important;
    }

    • This reply was modified 8 months ago by MrYess.
    • This reply was modified 8 months ago by MrYess.
    • This reply was modified 8 months ago by MrYess.
    Plugin Support mouindi

    (@mouindi)

    @mryess, Great to know that worked for you and thanks so much for sharing the code!
    This will definitely be helpful for other users facing the same issue. Appreciate you taking the time to contribute.

    Let us know if you need anything else!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘breadcrumbs’ is closed to new replies.