Title
-
Hello! I noticed that on the main page of the forum the code contains two h1 headers. The first creates a page “Forum”, the second forum itself. From the point of view of the CEO, the level header <h1> on the page should be one.
If you look at the forum topics, then the third heading <h1> is added:
<h1 id = “link-modal-title”> Insert / change link </ h1>Search engines are very bad for two or more <h1> headings on one page. Need to do something 🙂
I apologize for the style, I write through the translator
-
Hello @erenbur
The first “Forum” title is coming from your theme and basically is the title of your WordPress-page which contains the forum. It would be the best to just hide this title.
The next one is the title created by Asgaros Forum. A h1-title is used here because it is the title which reflects the content on the forum-page (e.g. name of topics/subforum/profile/etc).
The last h1-title you described is not coming from Asgaros Forum. I assume its generated by another extension or your theme.
I think it would be correct, to give the page title the h1 tag, the forum name the h2 tag, the forum category h3 tag, the forums in the h4 tag category, the topic names the h5 tag. Something like this. And posts in topics are plain text. Then from the point of view of SEO, everything will be logical for a search engine and it will understand the weight of each heading and subtitle.
Thanks, I will try now, I will write
It would be the best to just hide this title.
You mean it:
.type-post .entry-title, .type-page .entry-title {display:none}If you hide the title that WordPress creates using CSS, then it will not be visible to users, and in the code of the page (CTRL + U) the title will still remain and the search engine will find it.
Trouble 🙁If the page-title would have a h1-tag, it would be “Forum” for every topic which does not really represent the topic. This would basically the same as when you assign the h1-tag to your general website-title instead the content-title itself.
Based on the definition the h1-title is the main-title which represents the content of the page. For forum-topics or subforums this always refers to the related topic-title.
Other forums like the one here also work the same. For this topic the topic-title is used for the h1-headline as well.
No, not hiding it via css. Usually themes have an option to hide titles for certain pages. If not, some seo-plugins also offers functionality for this.
Page-titles always get added by the theme. Asgaros Forum does not have any influence on the theme-related parts so I cannot just “hide” page-titles, otherwise they would be gone for other non-forum-areas as well, depending on how the theme works.
It seems to understand the idea, thank you.
The last h1-title you described is not coming from Asgaros Forum. I assume its generated by another extension or your theme.
I found the code that generates the last header. This is WordPress itself generating. For some reason. Nowhere else on this site and on my other sites there. And on the forum pages inserts an extra h1 tag.
The file /wp-includes/class-wp-editor.php is to blameLine 1725 (in the Russian version):
<h1 id=”link-modal-title”><?php _e( ‘Insert/edit link’ ); ?></h1>
Perhaps only I have this problem, but the official WordPress file cannot be changed. For some reason, he adds an extra h1 tag to the forum almost at the very bottom of the page.
Thought about h1 and where it should be inserted you wrote correctly. I was a little wrong.
As an example I did on the test site:
view-source:https://politexpress.ru/forum/topic/tema-nomer-odinLine 758
Yes, this line seems to come from the WordPress-editor. Not sure why it puts a H1-tag there. Maybe someone can report this problem so it can be fixed in a future WordPress-update. However, it should not have a big influence on SEO because it appears after the correct H1-tag which is getting prioritized in this case.
Anyway, SEO is not very good with two h1 per page. I tested a little more, the second h1 appears only in forum messages. On the main page of the forum, it disappears.
P.S. Thanks for the idea, changed the template of the page where the forum is located – the h1 page has disappeared, the title has become correct. It remains to deal with the bottom h1. Maybe someone else has this problem, but many do not know.
I tested a little more, the second h1 appears only in forum messages. On the main page of the forum, it disappears.
This is correct because the WordPress-editor is used inside of topics. So the main-question is why the WordPress-editor uses a H1-headline in some component where it doesnt make any sense.
I made some tests to check if I somehow can disable this modal-dialog but it seems to be not possible. The only way to fix this is that the WordPress-team replaces the h1-tag with a more suitable one.
Perhaps you need to write to them that there is such a problem.
Hello again @erenbur
I reported this issue as a bug to the WordPress development-team:
https://core.trac.ww.wp.xz.cn/ticket/46918Hopefully they can change it soon. Thats all what I can do at the moment.
The topic ‘Title’ is closed to new replies.