Breadcrumb functionality seems limited

#2108
  • Resolved BLMMedia
    Rank Math free

    Have been using Yoast for many years like most people, never been that impressed with it, stumbled onto RankMath and it seemed pretty amazing – so, my point being is I have just installed it on my first site and have been going through the setup and changing things over from using Yoast.

    First problem I have come across is with the breadcrumbs – whilst the options in the admin section are very good, developer wise, thew function that generates them, not so good.

    For example, this was my current setup with Yoast:

    if (function_exists('yoast_breadcrumb')) {
    	$breadcrumbs = yoast_breadcrumb( '<p id="breadcrumbs">','</p>', false );
    	$data['breadcrumbs'] = ($breadcrumbs) ? $breadcrumbs : false;
    }

    I do it the above way because I use the Twig templating system and I am setting the breadcrumbs inside my functions.php file in a section that makes them globally available to Twig as breadcrumbs.

    As you can see I was using a surrounding container and was also able to tell Yoast to not echo the content, rather return it.

    I checked out the rank_math_the_breadcrumbs function and it seems returning it is a no go as echo’ing it is hardcoded in, and am unsure if you can pass any other args to it such as using a surrounding container – I see it takes a $args array, but there doesn’t seem to be much documentation around what these args are?

    I was hoping for a smooth transition, but unfortunately it doesn’t seem to be the way 🙁

    On a more positive note, I do love what I have seen from the plugin outside of this, you guys have done great work, just wish it was a bit more developer friendly.

    • This topic was modified 5 years, 8 months ago by BLMMedia.
Viewing 16 replies (of 16 total)
  • Todd
    Rank Math free

    Hi,

    You are very welcome.

    Do let us know if there is anything else we can help you with.

Viewing 16 replies (of 16 total)

The ticket ‘Breadcrumb functionality seems limited’ is closed to new replies.