Remove h1 tag from site title and logo
The site title and logo in the Swell theme which are customisable under ‘Site Identity’ in the WP dashboard, are wrapped in an h1 tag. This means that every page on my site has an h1 tag that I can’t edit.
This is atrocious for SEO, and a complete oversight in my opinion. I need to be able to customise every h1 tag on my site, and ensure there is only one h1 per page. I can remove the logo and text underneath it, but the h1 tag persists regardless of whether it is viewable by users or not.
Is there a way the H1 tag can be removed, not just for users, but from the code itself?
The blog I need help with is: (visible only to logged in users)
This has been fixed and should be reflected on your site tomorrow.
Hi, thanks for that. Can you also remove the H1 that wraps the screen reader text on blog post pages?
<nav class=”navigation post-navigation” role=”navigation”>
<h1 class=”screen-reader-text”>Post navigation</h1>
This has been fixed as well and should be pushed out tomorrow.
Hi there. Looks like the screenreader H1 is fixed, but the logo and site title are still showing as H1.
That’s very strange. I’ll double check to make sure the correct file was deployed. I’ll keep you posted.
I just checked your site, the home is the only page I’m seeing where the site title has an h1. On the other pages and posts, the page title or blog article title have the h1.
Ok that’s great in regards to the other pages, but the homepage is obviously very important. As is having full control over all h1s for SEO purposes. Could we change it so that the homepage matches the rest please?
Appreciate you looking at this for me :)
I totally get wanting to have full control over all h1 tags, but it is standard practice for the home page site title to be the h1. Every theme on WordPress.com has this. If I change it for your site, it will change it for everybody else who is using the Swell theme.
I see that you are on the business plan. So you can install plugins. Have you tried any SEO plugin yet?
Ok I can understand that. I have implemented a workaround using a child theme that I can edit myself to resolve the issue. Thanks for your help :)
- The topic ‘Remove h1 tag from site title and logo’ is closed to new replies.