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.
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.
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?