Home › Forums › Support › H1 as page title › Reply To: H1 as page title
October 19, 2015 at 12:15 pm
#145765
Lead Developer
Lead Developer
You can do that using GP Hooks ๐
1. Go to “Customize > Site Identity” and hide the site title and tagline.
2. Go to “GP Hooks” and add the following in the “Before Header Content” hook area:
<div class="site-branding">
<?php if ( is_home() ) : ?>
<h1 class="main-title" itemprop="headline"><a href="http://www.androidicecreamsandwich.de/" title="Android-Ice Cream-Sandwich" rel="home">Android-Ice Cream-Sandwich</a></h1>
<?php else : ?>
<p class="main-title" itemprop="headline"><a href="http://www.androidicecreamsandwich.de/" title="Android-Ice Cream-Sandwich" rel="home">Android-Ice Cream-Sandwich</a></p>
<?php endif; ?>
<p class="site-description">DER Android Blog</p>
</div>
Then check the “Execute PHP” checkbox and you should be good to go ๐
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-development