breadcrumbs error

#179976
  • Resolved Ryan Pratschner
    Rank Math free

    My breadcrumb setting are not working correctly. I am trying to make my breadcrumbs say Home>>Plan, but only home appears even after I enable show categories, instead of Home>>Plan. The show categories option under breadcrumb setting appears to be experiencing some error.

Viewing 15 replies - 1 through 15 (of 22 total)
  • Anas
    Rank Math business

    Hello,

    Thank you for contacting Rank Math, and sorry for any inconvenience caused.

    Rank Math shows the Primary Taxonomy category in the Breadcrumbs. Can you please confirm, if that is set in the Rank Math > Titles & Meta > Post/Page: https://rankmath.com/kb/titles-and-meta/#primary-taxonomy

    I hope this helps. Looking forward to helping you.

    I can confirm that Primary Taxonomy is set to categories

    Anas
    Rank Math business

    Hello,

    We might need to take a closer look at the settings. Please edit the first post on this ticket and include your WordPress & FTP 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:

    https://wordpress.org/plugins/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):

    https://wordpress.org/plugins/wp-security-audit-log/

    We really look forward to helping you.

    Hello,

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

    Thank you.

    Anas
    Rank Math business

    Hello,

    Please include the WordPress login URL in the sensitive data section.

    We look forward to helping you.

    Hello,

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

    Thank you.

    Brian
    Rank Math free

    Hello

    Thank you for getting back to us.

    I have gone ahead and added the breadcrumb PHP code below under both your posts template and category templates so that they can display accordingly.

    <?php if (function_exists('rank_math_the_breadcrumbs')) rank_math_the_breadcrumbs(); ?>

    These templates are labeled as single and archive templates in your theme files.

    Kindly confirm if this is how you expected them to display.
    Category breadcrumb: https://i.rankmath.com/Jqi7uB
    Single post breadcrumb: https://i.rankmath.com/ApRNuI

    Hope this is helpful. Let us know if you have any other questions.

    No, I expected the breadcrumbs to look like this, Home>Plan, Also the page I want to be edited is not dummy post, but its Elementor Single Post #347

    Anas
    Rank Math business

    Hello,

    It seems to be working fine.
    breadcrumbs

    If it is not working on your end, please try to clear your browser and website cache and check again.

    Let us know if the issue persists.

    We are here to help you.

    It looks good Anas, but its in the wrong place…

    I would like for the Home>Plan to be in the Elementor Single Post #347.

    Also I don’t think the plan is a clickable link like home is, clicking on plan doesn’t go anywhere right now, but I would like the plan to be clickable like home is, rather than just text.

    Anas
    Rank Math business

    Hello,

    I tried opening the Plan page in edit mode but got this error.
    error

    Also, Plan is not clickable as it is already on the current page. You should not be linking anything in the current page to itself. Not only is it bad for UX but it is frowned upon by search engines as well.

    Looking forward to helping you.

    Hello Anas

    If you visit this site it will give you a better idea of how I want my breadcrumbs to look and work: https://dogfoodheaven.com/wet-or-dry-dog-food/

    Hello,

    If you need to add a link to the last item of the breadcrumbs, you may use this custom filter:

    add_filter( 'rank_math/frontend/breadcrumb/html', function( $html, $crumbs, $class ) {
    	$html = str_replace('<span class="last">'.get_the_title().'</span>', '<a href="'.get_the_permalink().'">'.get_the_title().'</a>', $html);
    	return $html;
    }, 10, 3);

    Insert this to your theme’s functions.php file (towards the very bottom).

    Let me know if it works. We are looking forward to helping you.

    Hello RankMath support

    I finally got my breadcrumbs on the right page, they look like this Home > Plan, but the Plan isn’t red, and doesn’t function the way I want it to. How can I make them work correctly.

    I am basically mirroring this sites breadcrumbs: https://dogfoodheaven.com/wet-or-dry-dog-food/

    If you go there, and click on the breadcrumbs, that what my idea is for navigation. I don’t want to link anything to itself, or mess up the UX.

    Hopefully this makes, sense, I would put in a picture but I can’t figure that out…

    Actually, Jeremy may have answered part of my question, but how do I find the themes function.php file??

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

You must be logged in to reply to this ticket.