Only want menu option to appear on "posts"

  • Posted in : Read WP
  • GrantCov
    Participant

    Hey,

    So currently I have:

    .main-navigation div.selector {
    display: none;
    }

    But if someone clicks into one of my posts, then there is no way for them to navigate back to the home page without hitting the back button. Is it possible to hide the main navigation on the homepage but have it visible on “post” pages?

    Or set it up so it’s visible on all pages but the homepage?

    Thanks!

    ahmetsali
    Keymaster

    Hi, yes it might be possible, can your provide your homepage url?

    GrantCov
    Participant

    grantcovington.com

    ahmetsali
    Keymaster

    this custom css code should hide the header only on homepage;

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

    make sure to remove the code you use to hide header before.

    GrantCov
    Participant

    Still hidden on all the pages using that – any other suggestions?

    ahmetsali
    Keymaster

    this is because you have still the old custom css code that hides header in all pages, edit this line in your custom css;

    header.site-header.wrapper {display: none; padding-bottom:15px; padding-top:15px}
    

    to this;

    header.site-header.wrapper { padding-bottom:15px; padding-top:15px}
    
    GrantCov
    Participant

    thanks that worked!

    ahmetsali
    Keymaster

    you’re welcome, please don’t forget to rate the theme on themeforest if you liked it, thanks.

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

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register