• Resolved brnteka

    (@brnteka)


    Hey guys, what im trying to achieve is that on a single post page in breadcrumbs i want to show only home page and a parent categorys name. Both clickable. I have removed a post title with this snippet:

    add_filter( 'wpseo_breadcrumb_links', 'removelast_wpseo_breadcrumb_links' );
    
    function removelast_wpseo_breadcrumb_links( $links ) {
    	if( sizeof($links) > 1 ){
    		array_pop($links);
    	}
    	return $links;
    }

    and since categorys name is the last item now its not a link anymore. How can i make it a link again and not a span?

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Michael Ti?a

    (@mikes41720)

    We can’t offer support on custom code (needed to change (core) features of our plugin). Since we don’t want to take the risk that we break your website by suggesting incorrect or incomplete code, we cannot advise you on how to make such changes. Maybe someone watching these forums can assist you further, but if your topic is inactive for 7 days, we’ll mark it as resolved to keep the overview.

    Thank you for your understanding.

    Thread Starter brnteka

    (@brnteka)

    I understand that, but what if i’ll remove my custom code related to Yoast from functions.php, how can i implement a desired result? Breadcrumbs on a single post page without the posts title and with posts parent category title as a link? i.e. :
    <a href="link">home</a><a href="link">Parent category</a>

    • This reply was modified 6 years, 7 months ago by brnteka.
    Plugin Support Md Mazedul Islam Khan

    (@mazedulislamkhan)

    You can choose your breadcrumbs settings from the Yoast SEO -> Search Appearance -> Breadcrumbs (tab). However, if you’d need something else which isn’t in the settings, you’ll probably need to implement custom code to modify the Yoast SEO breadcrumbs built-in feature.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Make last beardcrumb a link’ is closed to new replies.