What's the best way to create a new design for other pages?
I want to create a different design for all new and existing pages, with the exception of the frontpage.
The new design includes another subheader, container, and an extra subfooter.
My guess was to edit footer.php/header.php in my child theme directly, and create seperate subheader/footer/container for these pages, and apply them as follows:
<?php if ( is_home() || is_front_page()){
<div class="subheader_front"></div>
}
else {
<div class="subheader"></div>
} ?>
Is this a correct way of applying a new design, or could this be done simpler?
I want to create a different design for all new and existing pages, with the exception of the frontpage.
The new design includes another subheader, container, and an extra subfooter.
My guess was to edit footer.php/header.php in my child theme directly, and create seperate subheader/footer/container for these pages, and apply them as follows:
<?php if ( is_home() || is_front_page()){
<div class="subheader_front"></div>
}
else {
<div class="subheader"></div>
} ?>
Is this a correct way of applying a new design, or could this be done simpler?
No comments:
Post a Comment