[Resolved] Completely remove header

Home Forums Support [Resolved] Completely remove header

Home Forums Support Completely remove header

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #588744
    tenacom

    First of all I have to say I love GeneratePress! I purchased GP Premium not because I absolutely needed it (although being able to customize fonts, spacing, and colors makes it totally worth the price) but first of all to support the authors. I write software for a living myself, after all. 😉

    But let’s get to the point. I put my logo in the primary navigation bar, so now the page header is empty… but it shows up nonetheless, as a narrow horizontal white stripe just above navigation. Needless to say, my site would look cleaner without it.

    So what are my options to remove the header completely? So far I’ve figured out the following:

    • I could use custom CSS to just hide the header; or
    • I could make a child theme and remove the header’s HTML code from it; or
    • there could be a hook that lets me remove it via PHP code.

    Since I want my site to load as fast as possible (and I don’t like having useless tags hanging around) I’m inclined towards the child theme solution. Or is some other, maybe simpler, way?

    #588747
    David
    Staff
    Customer Support

    Hi Riccardo, thank you for the kind words.

    maybe this is what you’re looking for:

    https://docs.generatepress.com/article/generate_header/

    #588857
    tenacom

    Thanks a lot, David! I copied the code in the article to functions.php in a child theme. Now my site looks like it should.

    #588862
    David
    Staff
    Customer Support

    Perfect, glad to be of help.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.