• Resolved azadbakhsh

    (@azadbakhsh)


    Hello,

    I tried to remove “Shop” from breadcrumb with the below code:

    add_filter('wpseo_breadcrumb_single_link' ,'remove_shop', 10 ,2);
    function remove_shop($link_output, $link ){
        if( $link['text'] == 'Shop' ) {
            $link_output = '<span>';
        }
        return $link_output;
    }

    It Worked but the Problem is, its separator didn’t remove and the breadcrumb show as below

    Home ? ? Persian Books ? Historical ? Dar Sarashib-e Soghoot by Kourosh Salehi

    After Home, I have two separators. How can I remove or hide one of them ?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Maybellyne

    (@maybellyne)

    Hello @azadbakhsh

    Thanks for reaching out about removing the Shop page in your breadcrumbs path. Since there’s no feature to do this in the plugin, the?wpseo_breadcrumb_single_link?filter is the other option. However, I can’t troubleshoot to find out why the output doesn’t meet your expectation. You can find an example of how to use the filter at this link.

    • This reply was modified 1 year, 9 months ago by Maybellyne.
    Plugin Support Maybellyne

    (@maybellyne)

    This thread was marked resolved due to a lack of activity, but you’re always welcome to re-open the topic. Please read this post before opening a new request.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Remove “Shop” from breadcrumb’ is closed to new replies.