Reply To: H1 as page title

Home Forums Support H1 as page title Reply To: H1 as page title

Home Forums Support H1 as page title Reply To: H1 as page title

#145765
Tom
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 ๐Ÿ™‚