• Resolved mvprzy

    (@mvprzy)


    I would like to remove the header banner on other pages.
    I have a child theme made and have already made changes to that.
    I know CSS, something like:
    div.frontpage-header {
    display:none;
    }
    But where can I put it into a specific page?
    Or just any page other than the front-page?

    I know html/css/js and some php but not familiar with WordPress yet.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hey there mvprzy,

    Hope you’re well! 🙂

    Use child themes for any customisation you will make. Read more about it here: http://codex.wordpress.org/Child_Themes

    Create a file named ‘header.php’ in your child theme’s folder then paste the code you will get here: https://gist.github.com/calvincanas/e3b0e482ab2891b9a012

    Let me know if it helps! 🙂

    Take care,
    Calvin

    Thread Starter mvprzy

    (@mvprzy)

    Thank You! I did find a way, but this helped immensely.

    What I ended up doing is using a child theme folder and then making another page template.
    I could not find the function “getheader()” anywhere.
    I ended up taking that line out and including a file “header2.php” instead. and I put that header2 file in the child folder as well.

    So, for those pages without the header, I choose that page template.
    Seems to work now.

    Mark

    Hey there Mark.

    Glad it’s working for you! 🙂

    get_header() is part of WordPress core functions so it will work out of the box but the way you did it is seems alright.

    Good job! 🙂

    Take care,
    Calvin

    What custom css did you end up using?

    Hey there jacobtshaw,

    Not sure if they used CSS for that at all. Calvin used php and edited themes header.php in order for this to work.

    So using that file in your child theme should do the trick.

    Hope this helps 🙂

    Cheers,
    Bojan

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How do I remove header banner on all pages but index/home page?’ is closed to new replies.