Remove in woocommerce breadcrumb Page 1 Page 1, Page 2 Page 2 etc.

This topic has 15 replies, 3 voices, and was last updated 1 months, 2 weeks ago ago by Alex Carter

  • Avatar: Redgall
    Andrea
    Participant
    April 16, 2025 at 11:26

    Hi,
    how to remove in woocommerce shop archive page breadcrumb Page 1 Page 1, Page 2 Page 2, etc?
    Thanks.

    Please, contact administrator
    for this information.
    Files is visible for topic creator and
    support staff only.
    14 Answers
    Avatar: Alex Carter
    Alex Carter
    Support staff
    April 16, 2025 at 11:43

    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

    Avatar: Redgall
    Andrea
    Participant
    April 16, 2025 at 11:57

    send, tank!

    Please contact administrator
    for this information.
    Avatar: Alex Carter
    Alex Carter
    Support staff
    April 16, 2025 at 12:57

    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

    Avatar: Justin
    Luca Rossi
    Support staff
    April 16, 2025 at 16:00

    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

    Files is visible for topic creator and
    support staff only.
    Avatar: Redgall
    Andrea
    Participant
    April 16, 2025 at 17:39

    I added your change to the code but there is still a problem, I attach screenshot

    Files is visible for topic creator and
    support staff only.
    Avatar: Justin
    Luca Rossi
    Support staff
    April 17, 2025 at 05:39

    Dear @Andrea,

    We’ve added a custom CSS code and it should be fine now.

    Can you please check again?

    Thank you!

    Files is visible for topic creator and
    support staff only.
    Avatar: Redgall
    Andrea
    Participant
    April 17, 2025 at 06:25

    where is the custom CSS code? So I move it to the styel.css file of the child theme. ok it works, thanks.

    Avatar: Justin
    Luca Rossi
    Support staff
    April 17, 2025 at 09:48

    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

    Avatar: Redgall
    Andrea
    Participant
    April 24, 2025 at 08:39

    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?

    Avatar: Justin
    Luca Rossi
    Support staff
    April 24, 2025 at 08:46

    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

    Avatar: Redgall
    Andrea
    Participant
    April 24, 2025 at 08:57

    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.

    Please contact administrator
    for this information.
    Files is visible for topic creator and
    support staff only.
    Avatar: Justin
    Luca Rossi
    Support staff
    April 24, 2025 at 10:29

    Hi @Andrea,

    Then replace the <h1> tag in this file:

    /wp-content/themes/xstore-child/woocommerce/global/breadcrumb.php
    

    Hope it helps!

    Please contact administrator
    for this information.
    Avatar: Redgall
    Andrea
    Participant
    April 24, 2025 at 14:09

    ok tank!

    Please contact administrator
    for this information.
    Avatar: Alex Carter
    Alex Carter
    Support staff
    April 24, 2025 at 15:32

    Hello,

    You’re welcome!

    Warm Regards,
    The 8Theme Team

  • Viewing 15 results - 1 through 15 (of 15 total)

You must be logged in to reply to this topic.Log in/Sign up

Helpful Topics

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.