• Resolved graham333

    (@graham333)


    Hi folks,

    I have spent hours farting about with this myself but to no avail, so I thought I would ask here before giving up.

    I’m using the 2012 Default Theme with Child Theme.

    Home page is a static page (Page)
    All content is in Categories (5) and Posts (50)
    Site is under construction and 503’d using the Maintenance plugin
    Other plugins installed:
    Remove Category URL
    Automatic Featured Image Posts

    Question is this:

    Is it possible to display the main horizontal nav menu (Categories and Posts) on the Home page ONLY, and nowhere else?

    I have tried adding the various code snippets to both the parent and child themes found here and on other sites but none of them seem to work on this theme.

    Can anyone help or provide a solution please?

    I’m not a coder so please make any answers foolproof i.e. tell me where stuff goes! thanks ??

Viewing 12 replies - 16 through 27 (of 27 total)
  • Tahoerock

    (@tahoerock)

    it is 1:15 here, going sleep for 2 hours, have to go :))
    will take a look tomorrow
    Cheers
    TR

    Thread Starter graham333

    (@graham333)

    Thanks so much for trying to help – goodnight ??

    stephencottontail

    (@stephencottontail)

    @graham333: To clarify something, do you have a menu assigned at Dashboard > Appearance > Menus > Manage Locations > Primary Menu? The required selectors are a bit different if that’s the case.

    Thread Starter graham333

    (@graham333)

    Hi Stephen, thanks for your interest,

    Yes I have assigned a menu, it includes the categories and posts and is selected as the Primary via the checkbox at the bottom.

    Tahoerock

    (@tahoerock)

    I could not sleep :), not to solve it

    so try this:
    it is working heere

    .main-navigation {
        display: none;
    }
    
    .home .main-navigation {
        display: block!important;
    }

    cheers
    TR

    Tahoerock

    (@tahoerock)

    This web Im testing on is for realy testing
    I did not have asigned menu to any, that is why we have different result,
    I assigned it to main menu and class has changed to

    main-navigation

    Thread Starter graham333

    (@graham333)

    Sorry tahoerock I didn’t mean to wreck your life ??

    Tried the new code on my local – Nope it’s not working for me, but if you only have pages that is prolly why its working for you.

    Tahoerock

    (@tahoerock)

    now I have mix, pages and and category. I added one upon your request. and it is hidden all over except homepage
    Good night for now
    TR

    stephencottontail

    (@stephencottontail)

    Can you post the contents of your child theme’s stylesheet to Pastebin and post the link here? Maybe there’s an error somewhere else that’s causing a problem.

    Thread Starter graham333

    (@graham333)

    Hey Stephen,

    Your commented prompted me into action ??

    I did a re-install of Wp on my Local Machine and guess what?… Bingo!
    the code…

    .main-navigation {
        display: none;
    }
    
    .home .main-navigation {
        display: block!important;
    }

    is now working like a charm, hurray! TF for that ??

    @tahoerock
    Many thanks to you for your help, you are a star my man, I hope you read this before you go to bed so you don’t stay awake all night ??

    Tahoerock

    (@tahoerock)

    Hey Graham
    I read it now 16.11.2015 9:45 and feel happy for you. I was so tired so I could not wait result.
    I was wondering, that it did not worked.
    I created almost same environment here and it was working right away.
    HAPPY FOR YOU
    pleasure to be helpful
    Feel free to ask in the future

    PS: it is good behaviour to do the site on life server, local tweaking can bring some problems when you go alive.
    Cheers
    TR

    Thread Starter graham333

    (@graham333)

    Just returning to keep the forum tidy and mark this thread as resolved.

    Thanks again TR.

    I find working on Wp like assembling a car with boxes of unlabelled assorted parts from different makes and models. Everything is there you just have to find the part that fits! ??

Viewing 12 replies - 16 through 27 (of 27 total)
  • The topic ‘Hide/Remove 2012 Theme Navbar Except for Home page’ is closed to new replies.