• Resolved turbobo

    (@turbobo)


    Hi!

    I want to remove the main title (“KEZD?LAP”), but only from the home page, the 2 codes below works, except if I put the page-id code in front of them. Why might this happen?


    .page-id-8178 .woocommerce-products-header__title{

    display:none!important;

    }

    .page-id-8178 .page-title{

    display:none!important;

    }

    Site: https://www.boltway.hu/

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter turbobo

    (@turbobo)

    Solved with the following css:

    body.home .woocommerce-products-header__title { display:none; }

    body.home .page-title { display:none; }

    Hi @turbobo

    If you add CSS code with a page-id this means the code will be targeting a specific page, however, with the homepage adding .home also works for the homepage instead of the page-id.

    I’m glad you managed to resolve the issue you where having, I will make this one as resolved.

    I tried the above and this one I got from another post:

    .singular .entry-header {
    display:none;

    But the only one that worked for me was:

    .wp-block-post-title {
    display: none;
    }

    • This reply was modified 1 year, 10 months ago by deborahwp78.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Remove the main title, but only from the home page’ is closed to new replies.