Archived topic
Wrong title showing as h1 tag
46 replies · Started by Joe on May 22, 2020
Hi I have created a page and named it Home. When in the page editor I can see that the slug has lost the word home and just shows the site url. There is no facilty to allow me to edit the word "home" back in again which I find strange. Also when doing a source code search of my home page, instead of the site title being in the h1 tags, it displays the word home in h1 tags. Obviously my site title is not showing in search so can you help me resolve this problem. Thanks
Hi there,
when you assign a Page as your Home Page in Settings > Reading the URL will always be just your top level URL.
If you want to change the title you should be able to edit this from the WordPress Page editor. Are you trying to edit in Elementor ?
Hi Dave. Editing in Wordpress.
Go to the Page List and quick edit your home page - can you change the title there ?
Gone to pages > Home and quick edit. Changed the slug from lesson-in-golf, to lesson-in-golf/home which when I go back into quick editor now reads lesson-in-golf-home
When going to EDIT, home is no longer in the slug, just site url.
WordPress removes the page title slug by default when the page is set to the home page.
Is that what you are referring to?
Hi Leo, my original post was stating that apart from "home" being stripped from the slug, "home" is actually showing as the h1 tag when veiwing the source code. This needs to read as the site title, don't you think? How can I change this?
Doesn't look like you've added a site title though?
https://docs.generatepress.com/article/site-title-tagline/
Looks OK to me. How can I add the image I have for this to let you see what I have?
You can use a service like this:
https://postimages.org/
Hope that works.
Right but you've checked to hide the site title and tagline though so nothing would show.
What would be the preferred solution?
I have changed that to show. But it only duplicates what's in my header so I don't see any benefit in that. Plus it doesn't help the tag situation as described. This is what is in the source code. <h1 class="entry-title" itemprop="headline">Home</h1>
Now you can disable the site title using the disable element metabox of that page:
https://docs.generatepress.com/article/disable-elements-overview/
Let me know if this helps :)