Secondary menu showing on all pages, even with page-id inserted

  • garyc

    #6732

    Hi guys

    Just read the excellent post:

    https://forum.graphene-theme.com/graphene-support/show-secondary-menu-only-on-a-specific-page

    And have inserted the code;

    .page-id-1072 #secondary-menu-wrap {
    display: block;
    }

    for http://www.hackneytools.com

    in Editor, with page-id being 1072, for ‘Tools for Sale’ page, but secondary menu showing

    on all pages. I only need it on that one page.

    Any ideas?

    Thanks

    Gary

    Mod

    Kenneth John Odle

    #35397

    You forgot to hide it first on all pages, before displaying it only on that page:

    #secondary-menu-wrap {
    display: none;
    }
    .page-id-1072 #secondary-menu-wrap {
    display: block;
    }

    Please put code in between backtick (

    Code:
    `

    ) characters. It’s usually located above the Tab key on your keyboard.

    garyc

    #35398

    Thanks Ken, worked a treat.

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

You must be logged in to reply to this topic.