How can I display site title as <h2> tags on sub pages/posts?
wordpress 3.5
Theme Socrates 3.0+
Have All in one SEO installed
I was checking my site and discovered that all the pages/posts on my blog have the site title in h1. That is bad for SEO. Only on index page I want it to be in h1.
I wonder how I can get the site title to be in h2 on subpages/posts?
I've also been looking into manually change the header.php for the theme but I got an error while doing so:
Parse error: syntax error, unexpected $end in /mydomain.com/wp-content/themes/socrates/header.php on line 207
Here is the part in header.php I changed:
<?php } else {
if (is_home())
{ ?>
<div class="titleText socshadow" style="margin-bottom:-5px;font-weight:bold;"><h1><a href="<?php bloginfo('url'); ?>"><?php echo stripslashes($header['titleText']); ?></h1></div>
<div class="descText socshadow"><?php echo stripslashes($header['descText']); ?></div>
<?php } else { ?>
Thank God I took backup of the file before I edited it
I have attached the file I changed here, my changes are at about line 161
Anyone knowing how to set the site title in h2 on sub pages/posts?
-
loginname -
Thanks
{{ DiscussionBoard.errors[7813394].message }} -
-
onSubie -
Thanks - 1 reply
{{ DiscussionBoard.errors[7813415].message }}-
loginname -
Thanks
{{ DiscussionBoard.errors[7842687].message }} -
-