Want to show different H1 title on homepage
-
Hi everyone. I am part of a Community Blog called Technology Bloggers, and in order to get Google+ buttons to work the way I want them to, on the homepage, I need this title code to show
<span itemprop="name" content="Technology Bloggers"></<?php echo $heading_tag; ?>></span>
Whilst on the rest of the site, only want the standard
</<?php echo $heading_tag; ?>>
to show.I have tried adding this code to the header.php file, but it just kills the site (site doesn’t load, just a blank page, suggesting code error)
<?php if ( is_front_page() ) { <span itemprop="name" content="Technology Bloggers"> </<?php echo $heading_tag; ?>> </span> } else { </<?php echo $heading_tag; ?>> } ?>
I only want the code to show on the front page of the blog, not on page 2, archives, posts etc. just the very front page.
any ideas/help?
Thanks guys
Christopher
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Want to show different H1 title on homepage’ is closed to new replies.