Support » Fixing WordPress » Remove Link in Header from one page

  • I have a link as part of my header that points to a download of a PDF however I’m trying to add some CSS so that I can set it to display:none for one page on my site and I cannot seem to remove just that link, I end up removing the entire header. Any ideas? Thanks!

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • You can do this with css only, but it’s a bit tricky. You have to target the page id that is output as a class on the <body> tag. I also crafted a declaration that targets the a tag with that notice.pdf link a[href*="Notice.pdf"] {
        display: none !important;

    Here page-id-8 correlates to your home page, but you may need to change that to a different id if you want this to happen on a different page than the home page.

    THANK YOU THANK YOU THANK YOU! I was banging my head against my desk, I could not figure out what I was missing.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Remove Link in Header from one page’ is closed to new replies.