[Resolved] H1 as page title

Home Forums Support [Resolved] H1 as page title

Home Forums Support H1 as page title

Viewing 5 posts - 16 through 20 (of 20 total)
  • Author
    Posts
  • #145749
    erni74

    is it possible to set the site title as H1?

    #145761
    erni74

    is it possible?

    #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 πŸ™‚

    #145784
    erni74

    works fine

    #145786
    Tom
    Lead Developer
    Lead Developer

    Awesome πŸ™‚

Viewing 5 posts - 16 through 20 (of 20 total)
  • You must be logged in to reply to this topic.