Cannot change Breadcrumb title

#38839
  • Resolved Roger
    Rank Math free

    I cannot get the title of my breadcrumbs to change

    I turned on hide post title – still there.

    Also I want to change breadcrumb title to just Dorset, which I have set on the Dorset page but it does not reflect in the breadcrumb?

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello,

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

    I have checked your page but it does not look like the page is using Rank Math breadcrumbs. I can suggest that you disable the theme breadcrumbs and enabled the Rank Math breadcrumbs by adding the following snippet of code to your theme:
    <?php if (function_exists('rank_math_the_breadcrumbs')) rank_math_the_breadcrumbs(); ?>

    Looking forward to helping you. Thank you.

    ​​​​​​​

    Roger
    Rank Math free

    Thanks for the reply, I am using Genesis theme, and have disabled breadcrumbs, so they are now gone.

    Do I add this code to functions.php as I tried this and it threw a big error on the page?

    Roger
    Rank Math free

    I have fixed it by adding this to my functions.php

    add_filter( ‘the_content’, function( $content ) {
    if( function_exists( ‘rank_math_get_breadcrumbs’ ) ) {
    $content = rank_math_get_breadcrumbs() . $content;
    }
    return $content;
    });

    Please advise if this is correct ?

    It’s working

    HI Roger,

    Thanks for the reply.

    Your workaround is correct if you want to append the breadcrumbs to the post content. If this works right for you, then you can keep using this method.

    For more flexibility on the location of the breadcrumbs, we recommend adding the snippet on the single.php page template on your theme.

    I hope this info helps.

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

You must be logged in to reply to this ticket.