For the purpose of good HTML structure, accessibility and SEO I'd like to change the site's title and description from H1 and H2 to P when appearing on any page other than the homepage. A conditional statement logic would be something like; when not homepage change site title and description to Site Title and Description
. Thanks!
Tell me more
×
WordPress Answers is a question and answer site for
WordPress developers and administrators. It's 100% free, no registration required.
Expanding on what Stephen Harris said, here is a useable example. Lots of different ways to use same code function. |
|||||
|
|
There are two conditionals, depending on your setup:
|
|||
|
|