• Resolved storylighter

    (@storylighter)


    Hello! I’m using the Lenora theme for my website (www.privatelifemovie.com) and I’m having trouble figuring out how to omit the header text from only the front page.

    Reading other posts about doing this on different themes leads me to believe I need to put a conditional statement like this into the header code:

    <?php if( !is_page( ’68’ ) ) : ?>

    the stuff i want to omit

    <?php endif; ?>

    Only I can’t figure out what to put that code around in the Lenora theme.

    I’m new to this so really spelling out any help for me would be great!

    Thank you!

Viewing 12 replies - 1 through 12 (of 12 total)
  • Hi storylighter,

    perhaps that helps:

    header.php, lines 34-43

    <?php if( !is_page( '68' ) ) : ?>
    
      <hgroup id="blog-title">
        <?php
          $options = get_option('lenora_theme_options');
           ...
      </hgroup> 
    
    <?php endif; ?>

    Marion

    Thread Starter storylighter

    (@storylighter)

    Hi pixxels,

    Oh my gosh it worked! Thank you very much!

    Greg

    Hi Greg,

    great! πŸ™‚ Thank you!
    Marion

    I am also new! I would like to do the complete opposite and remove the header image from all other pages besides the home page. Also if there is a way to remove the date in which I created the pages that would be great too! Please let me know if either of you know how to do these things. My website is http://www.sororitybarre.com.

    Hi Richard,

    its quite the same, just take “is_home()” or “is_front_page()”. Here are some details: http://codex.wordpress.org/Conditional_Tags

    Perhaps that helps:

    </nav><!-- END #main-menu -->
    
    <?php if(is_home()) : ?> //check for home page
    
      <?php  // Check to see if the header image has been removed
      $header_image = get_header_image();
        if ( ! empty( $header_image ) ) :
      ?>
    ...
      <?php endif; // end check for removed header image ?> 
    
    <?php endif; ?> //end check for home page
    
    </header><!-- END #branding -->

    And once again:

    to remove the date on pages take a look at content.php, line 5, and add an if construct:

    <?php if ( get_post_type() != 'page' ) : ?>
    
    <p><?php echo get_the_date(); ?> | <?php if ( count( get_the_category() ) ) : printf( get_the_category_list( ', ' ) );  endif; ?> | <a href="<?php echo get_permalink(); ?>"><?php _e( 'Permalink ', 'lenora' ); ?></a> </p>
    
    <?php endif; ?>

    That put the header image under the blog page. And when I replaced it with “is_front_page()” an error came up.
    What am I doing wrong??

    Never mind, it worked. Thanks for all of your help. Your template is awesome!!!

    Great, thank you! πŸ™‚

    Hi, I uploaded a custom logo but it didn’t work very well so I wanted to remove it, is there a simple way to make it return to the original layout with the site title and tagline at the top?
    Thanks

    I tried just removing the images on the hosting site but that just made a box appear with no image.
    Rupert

    Hi rupertc,
    sorry for the late answer, lot of work at the moment…
    Did find a solution meanwhile?
    BR,
    Marion

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘Remove Header From Front Page Only’ is closed to new replies.