• Resolved eddie

    (@ediet)


    1. The Home data from Polylang (WPML) translations is not pulled up. When editing breadcrumbs_home_link and breadcrumbs_home_label, translated values of these fields are not pulled up. Only what is manually entered in the breadcrumbs plugin settings is used. If the values in the plugin’s breadcrumbs settings are left blank, then the values on the site will be blank too.
    2. If I turn on the switch not to display the home page, a link to the post page with the post’s title is inserted instead.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Rank Math Support

    (@rankmathteam)

    Hello @ediet,

    Thank you for contacting the support.

    You can use the following filter to fix the translation issue of the homepage label in the breadcrumbs:
    add_filter( 'rank_math/frontend/breadcrumb/items', function( $crumbs, $class ) { $home_link = pll_home_url(pll_current_language()); $crumbs[0][0] = pll__("Home"); $crumbs[0][1] = $home_link; return $crumbs; }, 10, 2);

    Here is how to add a filter to your site:
    https://rankmath.com/kb/wordpress-hooks-actions-filters/

    And we were not able to replicate the second issue on our end. Please check again and share the steps to replicate it if it persists on your end.

    Looking forward to helping you.

    Thread Starter eddie

    (@ediet)

    Thank you!
    But as far as I can see from the code, this only applies to the language homepage url. What about breadcrumbs_home_label?

    Thread Starter eddie

    (@ediet)

    You can use the following filter to fix the translation issue of the homepage label in the breadcrumbs:
    add_filter( 'rank_math/frontend/breadcrumb/items', function( $crumbs, $class ) { $home_link = pll_home_url(pll_current_language()); $crumbs[0][0] = pll__("Home"); $crumbs[0][1] = $home_link; return $crumbs; }, 10, 2);

    functions.php:

    Scrape key check failed. Please try again.

    • This reply was modified 1 year, 8 months ago by eddie.
    Plugin Support Rank Math Support

    (@rankmathteam)

    Hello @ediet,

    The filter will translate the Home label into the current language of the page.

    And the scrape key check failed issue could be coming from a plugin conflict. You can use the following guide to figure out which plugin is causing the issue: https://rankmath.com/kb/check-plugin-conflicts/

    If the issue persists even when all the plugins are disabled, you should get in touch with your host as they will be in a better position to fix this.

    Let us know how that goes. Looking forward to helping you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Breadcrumbs doesn’t work correctly’ is closed to new replies.