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

  • garyc


    Hi guys

    Just read the excellent post:

    And have inserted the code;

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


    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?




    Kenneth John Odle


    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 (


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



    Thanks Ken, worked a treat.

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

  • You must be logged in to reply to this topic.