Hi Tom,
I’m trying to dynamically add all page titles except for home page just below the header by adding the following code to the After Header GP Hook:
<?php if ( ! is_front_page() ) : ?>
<div style="padding: 40px 0;background-color:#34788d;" class="page-banner">
<div style="padding-left:50px;font-size:1.8em;color:white;" class="grid-container">
<?php the_title(); ?>
</div>
</div>
<?php endif; ?>
This is working great except on my portfolio page (set as my blog page) where it already displays the required page title by default (Portfolio) but my code is also adding another title it seems from the first post in the archive.
Whats the best way around this as I just want the ‘Portfolio’ title displayed.
URL: http://tinyurl.com/hj7mc59