WordPress.org

Ready to get started?Download WordPress

Forums

Clean Retina
[resolved] Is there a way to get rid of the header in sub-pages? (11 posts)

  1. fdelorme
    Member
    Posted 1 year ago #

    I am using the corporate layout. But, I find the upper part takes a lot of space on the top part of the page as I have a sizeable image in my header.

    Is there a way of not using the header part in secondary pages? (i.e. avoid using the header in sub-pages).

    Thanks a gain.

    Francois

  2. Sanjiv
    Member
    Posted 1 year ago #

    Hi Francois,

    You could use the custom css to hide the header part.
    Can you give the link of the pages where you want to hide the header part.

    Regards,
    Team Horse

  3. cornh28
    Member
    Posted 1 year ago #

    I am also interested in removing the header from all subsequent, secondary pages.

  4. cornh28
    Member
    Posted 1 year ago #

    To clarify the above post: I am interested in removing or changing the header IMAGE from secondary pages (not the entire header with title).

  5. cornh28
    Member
    Posted 1 year ago #

    I found this page, which provides instructions on how to modify the code of the header.php file for the TwentyEleven theme:

    Will a similar tactic work in Clean Retina?

  6. esmi
    Forum Moderator
    Posted 1 year ago #

    No.

    1. Never the Twenty Twelve theme. It is the default WordPress theme and having access to an unedited version of the theme is vital when dealing with a range of site issues. First create a child theme for your changes. Or use a custom CSS plugin as appropriate.

    2. Every theme is different. What works for one will not work for another.

  7. Sanjiv
    Member
    Posted 1 year ago #

    Hi cornh28,

    If you want the header image only in the front page.
    Change
    if( !empty( $header_image ) ) :
    to
    if( !empty( $header_image ) && is_front_page() ) :
    in the header-extensions.php file inside the cleanretina_headerdetails function.
    But as esmi said you should implement these via child theme only as you will lose the changes in the update of the theme if you edit the code in parent/main theme.

    OR

    As I said earlier, you can also use the custom cssI(the easy way), I asked you for your link so that it would be easy for be to provide the custom css. Try this out: Go to Appearance->Theme Options->Design Options->Custom CSS Paste the following and click on save all changes.

    .home header img{
    display: block;
    }
    header img{
    display: none;
    }

    Regards,
    Team Horse

  8. fdelorme
    Member
    Posted 1 year ago #

    Sanjiv,

    Here's the page I am trying to remove the header image from.

    Thanks in advance!

    Francois

  9. fdelorme
    Member
    Posted 1 year ago #

    Wow! The custom CSS code you provided worked perfectly. Thanks a lot Sanjiv.

    Francois

  10. cornh28
    Member
    Posted 1 year ago #

    Thank you for this tips guys. Before your replies, I ended up finding this page -- and though it means a few more lines of code, it worked. This would only be a workable solution for a static website with fewer than a dozen pages.

    Sanjiv -- I'll try using your CSS above and see if that does the trick as well. Thanks very much.

  11. cRUSH3r
    Member
    Posted 9 months ago #

    This worked !

    .home header img{
    display: block;
    }
    header img{
    display: none;
    }

    Thanks Sanjiv !

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic