Hi,
how to remove in woocommerce shop archive page breadcrumb Page 1 Page 1, Page 2 Page 2, etc?
Thanks.
This topic has 15 replies, 3 voices, and was last updated 1 months, 2 weeks ago ago by Alex Carter
Hi,
how to remove in woocommerce shop archive page breadcrumb Page 1 Page 1, Page 2 Page 2, etc?
Thanks.
Hello,
Thank you for reaching out to us.
1/ Please provide the URL of the page from your screenshot.
2/ Could you please provide temporary wp-admin and FTP access? We will check what can be done to help you.
To grant WP-Admin access, please proceed to create a new user account with an administrator role through your WordPress Dashboard. Once the account is established, you may securely transmit the username and password to us via the Private Content section designated for this purpose.
For FTP access, we require the following details: FTP host, FTP username, FTP password, FTP port, and FTP encryption type. If you need assistance in creating these credentials, please reach out to your hosting provider who will guide you through the process.
Warm Regards,
The 8Theme Team
send, tank!
Hello, Andrea
To ensure you get the best support, we’re escalating your request to another specialist from our team, who will take a closer look at the issue.
They will update you as soon as possible, and we’ll make sure to keep you posted. If you have any additional details that might help, feel free to reply here.
Thank you for your cooperation!
Best Regards,
The 8Theme Team
Dear @Andrea,
We kindly ask you to copy the following file from the XStore parent theme:
/wp-content/themes/xstore/woocommerce/global/breadcrumb.php
and place it in the corresponding directory within the XStore child theme:
/wp-content/themes/xstore-child/woocommerce/global/breadcrumb.php
Once the file has been copied, please add the following code at the very top of the file:
if (!empty($breadcrumb)) {
foreach ($breadcrumb as $key => $item) {
if (!empty($item[0]) && str_contains($item[0], 'Pagina')) {
unset($breadcrumb[$key]);
break;
}
}
}
This modification should look like the screenshot we have attached for your reference.
We hope this is helpful. Should you have any questions or need further assistance, please do not hesitate to reach out.
Best regards,
The 8Theme Team
I added your change to the code but there is still a problem, I attach screenshot
Dear @Andrea,
We’ve added a custom CSS code and it should be fine now.
Can you please check again?
Thank you!
where is the custom CSS code? So I move it to the styel.css file of the child theme. ok it works, thanks.
Dear Andrea,
We hope this message finds you well.
Please note that the custom CSS code is located within the “Custom CSS” field of the breadcrumb element. We kindly advise against moving this code to the style.css file, as it is specifically related to the breadcrumb component only.
Thank you for your understanding.
Best regards,
The 8Theme Team
Hi,
I appreciate your effort but the code changes like this are not good. First thing with this change you have completely eliminated the terminal of the current page’s breadcrumb and it is not good. Second thing, and it was already like this, the terminal of the current page’s breadcrumb has a <h1 class="title"> tag the <h1>
tag is wrong, it makes no sense to have a <h1> tag
on the breadcrumb. Can you solve these problems?
Dear Andrea,
We hope this message finds you well.
As you have already copied the breadcrumb template to your child theme (reference: https://www.8theme.com/topic/remove-in-woocommerce-breadcrumb-page-1-page-1-page-2-page-2-etc/#post-440897), we would like to suggest a small modification.
Please open the breadcrumb.php file in your child theme, locate the line containing:
<h1 class="title">
and replace it with:
<span class="title">
We hope this adjustment will help resolve the issue.
Should you have any further questions or need additional assistance, please do not hesitate to contact us.
Best regards,
The 8Theme Team
Hi,
ok but this does not solve the problem I described in the first point. I attach screenshots so you can understand better and a link to view the problem.
Hi @Andrea,
Then replace the <h1>
tag in this file:
/wp-content/themes/xstore-child/woocommerce/global/breadcrumb.php
Hope it helps!
ok tank!
Hello,
You’re welcome!
Warm Regards,
The 8Theme Team
You must be logged in to reply to this topic.Log in/Sign up