• Resolved fdelorme

    (@fdelorme)


    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

Viewing 10 replies - 1 through 10 (of 10 total)
  • 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

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

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

    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?

    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.

    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

    Thread Starter fdelorme

    (@fdelorme)

    Sanjiv,

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

    Thanks in advance!

    Francois

    Thread Starter fdelorme

    (@fdelorme)

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

    Francois

    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.

    This worked !

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

    Thanks Sanjiv !

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Is there a way to get rid of the header in sub-pages?’ is closed to new replies.