• Resolved mohini108

    (@mohini108)


    hello there,
    how can i remove the last bit of the breadcrumb path – the title of the product?

    thank you
    maria

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter mohini108

    (@mohini108)

    i could solve it with this code pasting it into the child themes function.php ??

    /*
     * Remove the last breadcrumb, the post title, from the Yoast SEO breadcrumbs
     * Previous breadcrumb will remain linked
     * Credit: David @ https://generatepress.com/forums/topic/how-to-hide-the-title-part-in-the-breadcrumb-im-using-yoast-seo/#post-614239
     * Last Tested: Apr 11 2020 using Yoast SEO 13.4.1 on WordPress 5.4
     */
    
    add_filter('wpseo_breadcrumb_single_link', 'remove_breadcrumb_title' );
    function remove_breadcrumb_title( $link_output) {
    	if(strpos( $link_output, 'breadcrumb_last' ) !== false ) {
    		$link_output = '';
    	}
       	return $link_output;
    }
    Plugin Support Suwash

    (@suascat_wp)

    @mohini108

    We are glad to know the issue has been resolved. If you have further questions in the future, do not hesitate to reach out to us; we are happy to help. ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘remove the product title in breadcrumbs path’ is closed to new replies.