• Hi Guys

    I am creating a lead magnet, so I need to remove the header of the site in only one page, not in the rest of my website

    I don’t really want to add another plugin, as they sometimes interfiere with each other and cause problems.

    How can I do it?

    Thanks

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi There

    You can do this by writing the custom css in your stylesheet by giving the “display:none” style to header for the particular page id

    Example, in your case, try doing the following

    #page-id-1646, #main-nav {
    display: none;
    }

    Write this code in stylesheet. This should work

    Thanks and Regards
    Divdeep Singh

    Hello @elvisduarte,

    I’d suggest you never add any code directly to the theme files because the changes would be overridden with the next theme update.So always add your custom CSS to Appearance -> Customize -> Additional CSS section.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to Hide the header in a specific page without a plugin’ is closed to new replies.