trying to display blog title on homepage as h1, but as h2 in posts and pages
for SEO, I want to optimize the theme so the site’s title is used as the h1 tag ONLY on the homepage (actually =the front page if static page is displayed on the HP instead of the blog).
On posts and pages I want the post or page title to be the h1 tag
does anybody know how to write the php code to do this with the is_front_page() or is_home() elements?
help would be greatly appreciated.
- The topic ‘trying to display blog title on homepage as h1, but as h2 in posts and pages’ is closed to new replies.