• Resolved salandpen

    (@salandpen)


    Hi. I want to have a different margin on the home page. Basically I want to have just the menu on the home page, but I want my logo on all other pages. How can I do that?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi @salandpen!

    This CSS may not be exactly what you need (hard to be sure without seeing the site) but this will let you hide the logo on just the home page, assuming you’re using a static front page, and not blog posts on your home page:

    .home .site-branding {
        display: none;
    }

    To also hide the site tagline:

    .home .site-branding,
    .home .site-description {
        display: none;
    }

    Let me know if that does the trick!

    Thread Starter salandpen

    (@salandpen)

    Hi, Chad. Thanks for your help. I was sure it would work, but it didn’t. I can’t figure out why. Here’s a link to the home page: http://www.salandpen.com. The logo is still appearing in the margin. ???

    Thanks for the link!

    Give this a try:

    .home .site-logo-link {
        display: none;
    }

    Just to be on the safe side – when editing your CSS, don’t edit the theme directly. Instead, use the Additional CSS panel in the Customizer (assuming you’re running at least WordPress 4.7) or with something like the Jetpack Plugin using the Custom CSS Module

    Thread Starter salandpen

    (@salandpen)

    That was it! Perfect. Thank you so much.

    Thread Starter salandpen

    (@salandpen)

    Resolved!

    You’re welcome! 🙂

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Different Home Page Margin’ is closed to new replies.