Love this theme! Just one slight issue at the moment. I’d like to have the logo marked up with a h1 on the homepage but not the rest of the pages. And ideally, I’d like to remove the h1 from the post title on the homepage but not the other pages.
Any help would be greatly appreciated.
I’m wondering why you’d want to do this, its not really beneficiary for rankings on search engines.
Anyay, in Flashlight>framework>php>function-set-avia-frontend.php you’ll find
if($logo = avia_get_option('logo'))
$logo = "<img src=".$logo." alt='' />";
$logo = "<h1 class='logo'><a href='".home_url('/')."'>".$logo."</a></h1>";
$logo = get_bloginfo('name');
$logo = "<h1 class='logo bg-logo'><a href='".home_url('/')."'>".$logo."</a></h1>";
Here you can add an in “is_home();” statement with the h1’s applied and else you’d display it as a span rather than a h1, you might have to adapt the styling though.
The post title thing depends on what page template your homepage is using. Again, it’s not advised to do this for SEO purposes, but I’ll assume you know what you’re doing.
Let me know if this helps :)
Thanks for this. Haven’t really got a clue about php.
As far as I know with SEO, each page should have a distinct h1, which is normally the title of the page, apart from the homepage which takes the logo as its h1. At least, that’s what I’ve done for any organisations I’ve worked with previously.
Sorry to be a pain but would you mind being more explicit with the code snippet I need to add to achieve this?
Would really help
The topic ‘H1 added to logo on all pages’ is closed to new replies.