Title: Displaying (or not)
Last modified: September 1, 2016

---

# Displaying (or not)

 *  Resolved [ariane98](https://wordpress.org/support/users/ariane98/)
 * (@ariane98)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/displaying-or-not/)
 * Hi
    I like this theme but the “site-branding” is too big I would like to show
   it only on the frontpage, and not on the other pages. I tried display:none but–
   the place is still there, empty but anyway… – it’s for ALL pages
 * then modified the header.php file and got rid of the branding…but it’s for all
   pages too
    Is there a way to achieve this ?

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

 *  [Lisa](https://wordpress.org/support/users/workingwebsites/)
 * (@workingwebsites)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/displaying-or-not/#post-7648600)
 * Hi ariane98
 * Yes, there is a way to make the front page different than the rest of the pages.
   That often happens in websites and WordPress allows for it.
 * First, if you haven’t done so yet, you should **create a child theme for your
   site.**
    If you edit the Sela theme files (header.php) your work can be over-
   written when the Sela theme is updated. Child themes avoid that.
 * See: [https://codex.wordpress.org/Child_Themes](https://codex.wordpress.org/Child_Themes)
 * Second, **copy your new ‘header.php’ file into your child theme folder.**
    That
   makes your changes live without being over-written during an update. (You’ll 
   sleep better at night. 😉 )
 * Third, **add code to your header.php file** in the child theme so the header 
   in the front page is different than the rest of the pages.
 * See: [https://codex.wordpress.org/Function_Reference/is_front_page](https://codex.wordpress.org/Function_Reference/is_front_page)
 * The key is: **is_front_page()**
    Note: This only works if you’ve set a ‘static
   page’ as your ‘Front Page’ in Settings. Dashboard->Settings->Front page displays
 * To add the code, **set up an ‘if’ statement in displaying the header**.
 * Something like:
 *     ```
       <?php  if(is_front_page()){ ?>
       		<div class="site-branding">
       			<?php sela_the_site_logo(); ?>
       			<h1 class="site-title">
                    ...
       		</div><!-- .site-branding -->
       <?php  }  ?>
       ```
   
 * If you wanted to have a different kind of header, you can expand the ‘if’ statement
   to display something else if the page isn’t the front page.
 * Your code will look something like:
 *     ```
       <?php  if(is_front_page()){ ?>
       		<div class="site-branding">
                   .....
       		</div><!-- .site-branding -->
       <?php  }else{  ?>
       <div class="site-branding" id="inside_page">
       			.....
       		</div><!-- .site-branding -->
   
       <?php  } // end if front page ?>
       ```
   
 * Note: If it’s not the front page, the id ‘inside_page’ is added.
    This means 
   you still have the same header on the inside pages, but you can format them differently
   through CSS. The id will make writing the CSS easier.
 * Hope this helps!
 *  Thread Starter [ariane98](https://wordpress.org/support/users/ariane98/)
 * (@ariane98)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/displaying-or-not/#post-7648612)
 * Thanks so much !
 *  Thread Starter [ariane98](https://wordpress.org/support/users/ariane98/)
 * (@ariane98)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/displaying-or-not/#post-7648687)
 * btw…[resolved]

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

The topic ‘Displaying (or not)’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/sela/1.0.17/screenshot.png)
 * Sela
 * [Support Threads](https://wordpress.org/support/theme/sela/)
 * [Active Topics](https://wordpress.org/support/theme/sela/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/sela/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/sela/reviews/)

## Tags

 * [header](https://wordpress.org/support/topic-tag/header/)

 * 3 replies
 * 2 participants
 * Last reply from: [ariane98](https://wordpress.org/support/users/ariane98/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/displaying-or-not/#post-7648687)
 * Status: resolved