breadcrumbs

#681210
  • Resolved Anonymous
    Rank Math free

    Hello,

    I have set up breadcrumbs on my post template.

    The breadcrumbs appear as “Home > Tips & Guides” which is exactly what I want.

    When the user clicks on the bit that says “Home”, they are taken to the homepage perfectly.

    However, when the user clicks on the bit that says ‘Tips & Guides”, they are directed to a now-defunct page. I want to change the page to which they are directed, but I can’t remember how to do that. Please can you help me?

    Thank you

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

    Thank you for reaching out to us. I understand that you are experiencing an issue with the breadcrumbs on your website. To change the page to which the “Tips & Guides” breadcrumb link directs, you can follow these steps:

    1. Navigate to your WordPress Dashboard and go to Rank Math SEOGeneral SettingsBreadcrumbs.

    2. Scroll down to the “Homepage Link” option and enter the link where you want to send your visitor when they click on the “Tips & Guides” breadcrumb.

    Here’s a screenshot to help you locate the “Homepage Link” option:
    Homepage link

    After entering the desired link, remember to click on “Save Changes” to apply the modifications.

    If you have any further questions or need additional assistance, please feel free to ask.

    Kind regards.

    Sources:
    How to Enable Breadcrumbs on Your Website With Rank Math SEO » Rank Math
    How to Customize Breadcrumbs in Rank Math » Rank Math

    Anonymous
    Rank Math free

    I want to change the link for the second item in the breadcrumbs, not the first (Home).

    Hello,

    Thank you for contacting us and sorry for any inconvenience that might have been caused due to this issue.

    Can you share the URL of a Post with the affected breadcrumbs? Also, let us know which method you used to implement the Breadcrumbs.

    Looking forward to helping you resolve this issue.

    Thanks.

    Anonymous
    Rank Math free

    Thanks Ike !

    https://healthspaninsider.com/what-is-health/ (breadcrumbs are in the top left-hand corner)

    I put in this code: [rank_math_breadcrumb]

    Hello,

    You can use the following filter on your website to change the URL of the Tips & Guides on your breadcrumbs:

    add_filter( 'rank_math/frontend/breadcrumb/items', function( $crumbs, $class ) {
        $crumbs[1][1] = 'https://yourdomain/'; // Change the URL here
        return $crumbs;
    }, 10, 2);
    

    Here’s how you can add filter/hook to your WordPress site: https://rankmath.com/kb/wordpress-hooks-actions-filters/

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

    Thank you.

    Anonymous
    Rank Math free

    Hi there,

    I am really sorry but I don’t understand this.

    Are you able to explain it another way ?

    Many thanks
    Regards
    Matt

    Hello,

    Thank you for your patience.

    It seems that you only have 1 category on your site, which is the Uncategorized:
    https://healthspaninsider.com/uncategorized/

    If you want to use that category and change the URL, you may use the quick edit option to change the title and slug

    slug

    However, if you want a different page other than this URL, then share it so we can adjust the filter for you.

    Looking forward to helping you.

    Anonymous
    Rank Math free

    Sorry, I am really out of my depth here.

    I would like

    [moved to sensitive data section]

    Many thanks
    Regards
    Matt

    Hello,

    Thank you for your patience.

    The Tips & Guides is created as an actual page, that’s why it is not getting included in the breadcrumbs to follow the hierarchal order.

    Here’s the code to insert that page into your single post breadcrumbs:

    add_filter( 'rank_math/frontend/breadcrumb/items', function( $crumbs, $class ) {
            //Adding to single posts
    	if(is_singular('post')){ // change to match the actual custom post type name
                    $value[] = array(
    		'Tips & Guides', 
                    'https://healthspaninsider.com/tips-guides-2/', 
                    'hide_in_schema' => false
    		);
                    //add this value as the second item in array
    		array_splice( $crumbs, 1, 0, $value ); 
    		return $crumbs; 
    	}
    	return $crumbs;
    }, 10, 2);

    However, if you’re unsure how to add the breadcrumbs using the filter, then we can add it for you instead by logging in to your site.

    To do that, please edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section.

    Please do take a complete backup of your website before sharing the information with us.

    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,

    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 9 replies - 1 through 9 (of 9 total)

The ticket ‘breadcrumbs’ is closed to new replies.