• Hi. Apologies for the wordiness of the post. I want to give as much detail as I can. I have a searchbar in my header that I have configured just how I want it. But I want to have it visible on only one page (it is a category page, ID=16, so I’m wondering if that has anything to do with it). I found all the page IDs and made it hidden on the ones I didn’t want it on, one at a time. That worked, except for one page, ID=6, on which it still showed. So I tried making it hidden on all pages, and using NOT to show it on the one I did want (ID 16). That didn’t work at all. So then I tried hiding it on all pages, and added another line of CSS to make it visible on the category page (16). That didn’t work either. The page ID I am having trouble hiding it on is 6. The ID of the category page (the only one I want it on) is 16. Can someone please explain why I can’t get it hidden on ID 6?

    • This topic was modified 4 years, 5 months ago by t-p. Reason: Moved to Fixing WordPress from Developing with WordPress

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Thread Starter JohnM13

    (@johnm13)

    Ok, so I worked out that the category page needed the element “.term-16”. So I wish to modify my question:
    Why do these lines work perfectly:

    .col-md-6{visibility:hidden}
    .term-16 .col-md-6 {visibility:visible!important}

    while this line doesn’t. It shows the searchbar on all pages:

    .col-md-6:not(.term-16 .col-md-6) {visibility:hidden!important}

    In my mind they are equivalent, just that the second one is more “elegant”. Is someone able to explain why they are not?

Viewing 1 replies (of 1 total)
  • The topic ‘Page IDs’ is closed to new replies.