Full URL on google search result

#447514
  • Resolved Sai G
    Rank Math free

    I want to show full url of blog posts on search results how do i make it. shared reference image links on sensitive data

Viewing 1 replies (of 1 total)
  • Nigel
    Rank Math business

    Hello,

    Thank you for contacting Rank Math for help with changing how your blog post URLs are displayed in Google search results.

    You can change the breadcrumb structure of your posts. Currently the structure is “Site URL > GST category > Blog post” You would need to change the structure to “Site URL > Blog > Blog post”. To do that you will have to add the following code snippet to your website:

    
    add_filter( 'rank_math/frontend/breadcrumb/items', function( $crumbs, $class ) {
    	if (is_singular( 'post' ) ){
    		$crumbs[1][1] = 'https://yoursite.com/blog/';
    		$crumbs[1][0] = 'Blog';
    	}
    	return $crumbs;
    }, 10, 2);
    

    You can follow our guide for how to add the code snippet: https://rankmath.com/kb/wordpress-hooks-actions-filters/

    Hope that helps. Please let us know if you have questions.

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

The ticket ‘Full URL on google search result’ is closed to new replies.