Archived topic
Remove H1 page titles and space from Blog and category pages
12 replies · Started by imajn on February 15, 2018
Hi
I'm wanting to remove the page title (h1) on the category and blog pages to improve the look of the page. I've tried using all the code that I found in the documentation and the forum here but it doesn't remove the page title from these pages.
Am I missing something?
Thanks for your help.
Hi there,
Blog page shouldn't have a title by default.
Category can be removed with this: https://generatepress.com/forums/topic/remove-pages-title/#post-426357
I am likewise trying to remove the H1 texts from my generate press + premium plugin blog page. Please let me know if the code provided above in the link will suffice to remove the h1 headers from the text that appears immediately after the main image. If it is intended to do so, it does not work on my site. I have installed generate press' simple css plugin.
Thanks for any assistance you can provide in this regard.
There shouldn't be an H1 on your blog page - can you link us to the page in question?
Let me know :)
Thanks for the note, Tom.
The home page for my podcast site contains a blog roll with not only the title but also the header 1 for those posts for which I inserted an H1 header.
Any assistance in removing that H1 tag from the blog roll would be greatly appreciated.
Sincerely,
Erik Estrada
Ah, this is because you've added your H1 inside your content. It also looks like you're using the More Tag, which will output HTML in your excerpts (the H1 element).
Any reason you've added the H1 inside your content as opposed to using the built-in H1 on single posts?
Hi Tom, I insert the H1 tag into the blog post because I want to help Google's crawler better understand the content and structure of the page. This advice of including an H1 was suggested by the SEO specialist who run the SEO bits podcast.
I used the following code on my Extra theme, when I was using it, in order to prevent the H1 tag from appearing on the blog roll:
.custom-blog .et_pb_blog_grid .hentry h1{
display: none;
}
Thanks for any help you can provide in removing the h1 tag from the generate press blog roll.
Sincerely,
Erik E.
Hi, Tom,
Here is the Url where the problem the H1 tag is present.
GeneratePress adds the H1 for you, so there's no need to add it yourself.
You can hide the second H1 with CSS, but I'm not sure that's good for SEO.
.blog .entry-content h1,
.archive .entry-content h1 {
display: none;
}
Hi, Tom,
Thanks for the code! It worked in removing that H1 tag from appearing on the blog roll. Very much appreciated.
Would you mind on elaborating on your note "GeneratePress adds the H1 for you, so there’s no need to add it yourself"? Does this mean that with the generatpress theme the first line in the classical editor is labelled automatically as H1, even though the editor shows a basic paragraph designation?
Second, with regard to your note "You can hide the second H1 with CSS, but I’m not sure that’s good for SEO," would what is most important for SEO be the H1 designation on the actual blog entry? Or, is there much importance assigned to that H1 designation for a blog roll.
Thanks for your time in answering these questions.
Sincerely,
Erik Estrada
GeneratePress adds the H1 for you, so there’s no need to add it yourself
The title of the post is always added as <h1>. So ideally you shouldn't use another <h1> in the content of the post.
would what is most important for SEO be the H1 designation on the actual blog entry?
<h1> is most commonly use as the blog entry title :)
How do you stop generate press from doing that? I don't want my <h1> to be the same as my title...
Can you open a new topic for your question?
Thanks :)