Breadcrumbs is not working

  • Hi, I’m using Shoptimizer theme and the Rankmath breadcrumbs not working. I see errors and I also see ‘Home’ at the top left corner of every page. I have pasted the required code also followed this ticket but no help.

    Regards,

Viewing 15 replies - 1 through 15 (of 15 total)
  • Hi Avik,

    Thanks for getting in touch with us.

    We have already replied to your email.

    Please add the breadcrumbs code in your page.php or single.php file.

    If it is a Product page, add the code to your woocommerce/singe-product.php file.

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    Thanks, but is it possible to add it everywhere from function.php? Why don’t you add this option from the panel so we don’t need to manually edit.

    Regards,

    Hello,

    Thanks for the follow up.

    I am afraid that it is not possible to use a generic function to register the breadcrumbs for all themes since theme templates are unique for each theme and one method would not fit all.

    Please let us know if you would like some help in adding the code.

    Thank you.

    I’m using Shoptimizer theme and I want the Rankmath breadcrumbs to show everywhere except homepage just like woocommerce breadcrumbs. If you can assist me with that you’re welcome.

    Regards,

    Hello,

    I do not have access to a copy of this theme. Please edit the first post on this ticket and include your WP logins in the designated Sensitive Data section.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    Temporary Login Without Password

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    WP Security Audit Log

    We really look forward to helping you.

    Hi, Shoptimizer developer added Rankmath breadcrumbs in their customization so the problem is solved now. Thanks to their excellent support.

    Now I want to remove ‘Shop’ or ‘Product’ from the breadcrumbs. Which is there after ‘Home’. I want category name after Home.

    Check screen: https://prnt.sc/qnf1tz

    How do I do that? Could you please help?

    Regards,

    Hello,

    Thank you for contacting Rank Math today.

    You can use the following filter to modify the breadcrumb items:

    /**
     * Allow changing or removing the Breadcrumb items
     *
     * @param array       $crumbs The crumbs array.
     * @param Breadcrumbs $this   Current breadcrumb object.
     */
    add_filter( 'rank_math/frontend/breadcrumb/items', function( $crumbs, $class ) {
    	return $crumbs;
    }, 10, 2);

    Looking forward to helping you. Thank you.

    ​​​​​​

    Could you please give me the exact code? I want to remove ‘Shop’ just after ‘Home’

    Regards,

    Hello,

    Please check if this code works for you:

    /**
     * Allow changing or removing the Breadcrumb items
     *
     * @param array       $crumbs The crumbs array.
     * @param Breadcrumbs $this   Current breadcrumb object.
     */
    add_filter( 'rank_math/frontend/breadcrumb/items', function( $crumbs, $class ) {
    	if(is_product()){	
    		
    		unset($crumbs[1]);
            $crumbs = array_values($crumbs);
    		return $crumbs; 
    	}
    	return $crumbs;
    }, 10, 2);

    Thank you.

    Hi,

    Having issues with breadcrumbs on my website: gigsharks.com

    Breadcrumbs display on custom post type “jobs” but are limited to Home >> Job Title

    There is usually an extra step between home and the job, it’s a page.

    For example Home >> Seattle gig economy jobs >> job title

    How would I get this to display correctly?

    Thanks but it’s working on product pages only not on category pages. Could you please tell me how to show on product categories too.

    Regards,

    Used if(is_product() || is_product_category()) and its done. Thanks for excellent support.

    Hello @aviksaha,

    I am glad that this is now resolved 🙂

    @jonathanwhitney could you please head over to your WP Dashboard > Rank Math > General Settings > Breadcrumbs > Show Blog Page and enable this option as shown below:
    Screen cap

    Let me know how this goes.

    Looking forward to helping you. Thank you.

    ​​​​​​

    Thanks Michael, upon further review this doesn’t solve my problem. All job posts show that they are under “atlanta gig economy jobs” when in fact they have their own unique city

    Hello,

    We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.

    If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/?rate=5#new-post about your overall experience with Rank Math? We appreciate your time and patience.

    If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

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

The ticket ‘Breadcrumbs is not working’ is closed to new replies.