Hide "title of the page" from breadcrumb (shop pages)

This topic has 5 replies, 3 voices, and was last updated 4 years, 7 months ago ago by tumoneygram@gmail.com

  • Avatar: tumoneygram@gmail.com
    tumoneygram@gmail.com
    Participant
    December 7, 2020 at 20:17

    I have already

    For example for the url “home/category-1/category-2/title-of-the-page” i would like to have the following breadcrumb category-1/category-2/ instead of home/category-1/category-2/title-of-the-page

    I have already this in the custom css of my website:

    .woocommerce-breadcrumb > a:first-of-type,
    .woocommerce-breadcrumb span:first-of-type {
    display: none;
    }

    What I should add? Could you write me the complete code of both things (hide home and hide title of the page from breadcrumb)?

    4 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    December 8, 2020 at 09:58

    Hello,

    Please provide us with URL of the mentioned page, use the Private Content area – https://prnt.sc/vy2tmr

    Regards

    Avatar: tumoneygram@gmail.com
    tumoneygram@gmail.com
    Participant
    December 8, 2020 at 10:13

    It is in white color, so you cannot see it, however it exists and has an h1 tag. I would like to hide ir

    Please contact administrator
    for this information.
    Avatar: Olga Barlow
    Olga Barlow
    Participant
    December 8, 2020 at 14:16

    Hello,

    Replace the previous code with the code below

    .woocommerce-breadcrumb>a:first-of-type, .woocommerce-breadcrumb span:first-of-type, .woocommerce-breadcrumb h1.title, .woocommerce-breadcrumb .delimeter:last-of-type {
        display: none;
    }

    Regards

    Avatar: tumoneygram@gmail.com
    tumoneygram@gmail.com
    Participant
    December 9, 2020 at 10:03

    Thank you. Done.

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

The issue related to '‘Hide "title of the page" from breadcrumb (shop pages)’' has been successfully resolved, and the topic is now closed for further responses

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.