• Resolved mattikeuh

    (@mattikeuh)


    Hello,

    When putting the webshop together i found a problem with my breadcrumbs.
    I have a “home” page and a “shop” page. But the home and shop are the same page. HOw can i delete the “shop” page from the breadcrumbs?
    There’s no SEO installed at the moment.

    Greetings,
    Mathieu

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello @mattikeuh,

    I am sorry I am not able to understand your questions clearly.

    Can you please post your site URL so that I can understand the issue clearly?

    Also, please post some screenshot as well.

    Thank you.

    Thread Starter mattikeuh

    (@mattikeuh)

    Hello,
    I don’t have a url, It’s running on a local computer to test some things.
    https://prnt.sc/26iko9s

    This is a screenshot from the title + breadcrumb.
    If you check it you see=> Home > Shop > T-shirt.
    But i don’t use the Shop Item so my question is how to remove the “shop” ? Because the Shop isn’t a catagory. If i delete the page ‘Shop” Then it change to: Products automatically.

    Greetings.

    Thread Starter mattikeuh

    (@mattikeuh)

    I found the Solution.
    I needed to remove this:

                if ( wc_get_page_id( 'shop' ) ) { //Displaying Shop link in woocommerce archive page
                    $_name = wc_get_page_id( 'shop' ) ? get_the_title( wc_get_page_id( 'shop' ) ) : '';
                    $shop_url = wc_get_page_id( 'shop' ) && wc_get_page_id( 'shop' ) > 0  ? get_the_permalink( wc_get_page_id( 'shop' ) ) : home_url( '/shop' );
                    if ( ! $_name ) {
                        $product_post_type = get_post_type_object( 'product' );
                        $_name = $product_post_type->labels->singular_name;
                    }
                    echo ' <span itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"><a itemprop="item" href="' . esc_url( $shop_url ) . '"><span itemprop="name">' . esc_html( $_name ) . '</span></a><meta itemprop="position" content="'. absint( $depth ).'" /> <span class="separator">' . $delimiter . '</span></span> ';
                    $depth++;
                }
    
    

    From the /inc/extras.php.

    Greetings,
    Mathieu

    Hello @mattikeuh,

    Make sure that have made those changes to create a child theme.

    Because if you have made changes on the main theme files then all of your changes will be lost on the theme update.

    You can find many plugins to create a child theme.

    If you have any further questions, please let us know.

    Thank you.

    Hi! I delited Shop from breadcrumbs.
    How to remove Shop from schema BreadcrumbList?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Remove “Shop” In breadcrumbs’ is closed to new replies.