Breadcrumbs Display

#34560
  • Resolved Shane
    Rank Math free

    I apologise if this has been asked and answered before but I added the breadcrumbs shortcode to my Divi site and it’s not working correctly, I think??

    Do these breadcrumbs work for pages or just posts and categories?

    If not for pages can I install a breadcrumb plugin that works for pages or does it conflict?

    Each page isn’t showing the previous page which is what I’m after, is this possible?

    Thanks, heaps

    • This topic was modified 4 years, 10 months ago by Shane.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Todd
    Rank Math free

    Hi Shane,

    Thanks for getting in touch with us.

    You can change your breadcrumb settings at WordPress Dashboard > Rank Math > General Settings > Breadcrumbs.

    Make sure to enable categories on that page.

    Also, make sure Category is selected as the primary taxonomy at WordPress Dashboard > Rank Math > Titles & Meta > Posts/Pages

    You can use any other plugin for breadcrumbs too, just make sure to disable Rank Math breadcrumbs.

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

    Shane
    Rank Math free

    Great thanks heaps, with a bit of CSS I was able to style it. Is there a way to enable the complete trail of menu items as I’m only getting back to home even when on a sub-menu page?

    Cheers again

    Todd
    Rank Math free

    Hi Shane,

    Is the sub menu page a child page? I need an example to help you better.

    Shane
    Rank Math free

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    I am afraid that it is not currently possible to add these kind of page items on the breadcrumb trail from the UI.
    To be able to add all the links, you will need to create some custom code using the following filter:

    /**
     * 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.

    ​​​​​​​

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

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

The ticket ‘Breadcrumbs Display’ is closed to new replies.