Header Appears in Posts Instead of Front Page
-
I was wondering why Header is set to appear in Posts page instead of Front page. I was able to change that by modifying the header.php file. I changed the following code
<?php if(is_home() && !get_theme_mod( 'header_banner_visibility' )): ?> <div id="page-sub-header" <?php if(has_header_image()) { ?>style="background-image: url('<?php header_image(); ?>');" <?php } ?>>
into
<?php if(is_front_page() && !get_theme_mod( 'header_banner_visibility' )): ?> <div id="page-sub-header" <?php if(has_header_image()) { ?>style="background-image: url('<?php header_image(); ?>');" <?php } ?>>
The only problem I have with this is having to re-modify the code every time there is an update. Is their a way to change it without worrying about future updates? Thank you.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Header Appears in Posts Instead of Front Page’ is closed to new replies.