css code for the homepage only

Mauer Themes Support Essentialist css code for the homepage only

This topic contains 5 replies, has 2 voices, and was last updated by  Paul 1 year, 2 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1558

    YourFlow
    Participant

    Hi Paul,

    I’d like to make some minor changes solely to the static homepage. For example, to remove its logo. However, I can’t find the right css code to place in front of the code so it only applies to homepage.

    I tried to place .home in front of the code but it didn’t work. Did I do something wrong? If I remove .home it does work for all pages on the theme.

    Once again thank you for this theme, I’m pleased with it.

    Kind regards,

    YourFlow

    #1571

    Paul
    Keymaster

    Hello YourFlow,

    Adding .home works both if your homepage is set to display your latest posts and if it’s set to display a static page.

    I guess you might have had an error or priority issue in the actual code you were using.

    Please try to use this exact code and let me know if it has hidden the logo for you:
    .home .site-logo {display:none;}

    Regards,
    Paul

    #1580

    YourFlow
    Participant

    Hi Paul, I tried and it worked for the logo. However, the only code it doesn’t work for is this one:

    .body.page .entry-full .entry-title {
    display: none;
    }

    Without .home it does work for all pages, however if you add .home in front it doesn’t work on any of the pages.

    Kind regards,

    YourFlow

    #1583

    Paul
    Keymaster

    It looks like you need to remove the dot in front of body — as it’s not a class, but a tag name. And also .home is a class attached to the body.

    So please try body.home.page .entry-full .entry-title {display: none;}

    #1608

    YourFlow
    Participant

    Hey Paul,

    Thank you, it worked!

    Kind regards,

    YourFlow

    #1615

    Paul
    Keymaster

    You’re very welcome : )

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.