The path to the breadcrums is incorrect

#688577
  • Resolved Giuliano Ciolino
    Rank Math free

    I added the setting to remove the title from breadcrumbs. At first I thought it wasn’t a good idea, but I added it.

    In posts it works perfectly: In categories and pages it doesn’t work at all. The tool works half well. It doesn’t make much sense to hide the title only from posts. Either all or none.

    https://imgur.com/a/JlFxYrH

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

    We apologize for the inconvenience you’re experiencing with the breadcrumbs settings. It seems that the setting to remove the title from breadcrumbs is not working as expected on categories and pages.

    The code snippet you’ve added to remove the post title from the breadcrumbs should ideally work across all post types, including categories and pages. It’s indeed unusual that it’s only working on posts.

    To ensure that the code snippet works across all post types, including categories and pages, please make sure that the code snippet is correctly added to your theme’s functions.php file or a custom plugin. Also, ensure that there are no conflicts with other plugins or theme functionalities.

    If the issue persists, please provide us with temporary access to your WordPress dashboard so we can investigate this further. You can assign this ticket to our support team using the available buttons, and we’ll be happy to assist you further.

    Thank you for bringing this to our attention.

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

    Hello,

    Apologies for the inconvenience.

    The Hide Post Title option applies to single post types only:
    https://rankmath.com/kb/general-settings/#hide-post-title

    If you want to remove the category name from the breadcrumbs, then you may need to use this filter on your site:

    add_action( 'wp_head', function () {
    	if ( is_category()) { ?>
    	<style>
    		nav.rank-math-breadcrumb>p>:nth-last-child(-n+2) {
    			display: none;
    		}	
    	</style>
    
    <?php }
    } );

    Hope that helps.

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

The ticket ‘The path to the breadcrums is incorrect’ is closed to new replies.