Skip to content

Help us fixing the H1 header tags

Solved WordPress
12 3 4.2k 1
  • wrote on last edited by
    #1

    Last year during Nov, we changed our site from flarum to WordPress and Sudonix was very helpful, it brought back our smile again!
    alt text

    Cutting the story short, there’s one critical change that needs to be fixed.

    When you visit the Q&A topic for example: https://sopriza.com/question/france-national-retirement-push-62-64/ it looks okay on your eyes but the thing is search engines have been reporting there are 2 H1 tags that one needs to be removed. I suspect the second h1 tag comes from the breadcrumb, and sad thing i have no knowledge how to remove it 😭

    Also tested using: https://www.seoreviewtools.com/html-headings-checker/

    – @MadWay @phenomlab @Hari

  • @Sala This isn’t something I’d recommend in terms of using a mobile phone to perform edits. I also need a response to this

    https://sudonix.com/topic/415/help-us-fixing-the-h1-header-tags?_=1674640646756

    My initial thoughts here are that your theme and an SEO plugin are doing the same thing in terms of H1 tags. In addition, you should also check Google Analytics to see if you still have cached pages there from before the move.

    wrote on last edited by
    #11

    @phenomlab after carefully checking the code i was able to fix the issue. There was a dnone h1 class tag that wasn’t supposed to be there.

    alt text

    Now reporting one h1 tag. Wooup!

  • Last year during Nov, we changed our site from flarum to WordPress and Sudonix was very helpful, it brought back our smile again!
    alt text

    Cutting the story short, there’s one critical change that needs to be fixed.

    When you visit the Q&A topic for example: https://sopriza.com/question/france-national-retirement-push-62-64/ it looks okay on your eyes but the thing is search engines have been reporting there are 2 H1 tags that one needs to be removed. I suspect the second h1 tag comes from the breadcrumb, and sad thing i have no knowledge how to remove it 😭

    Also tested using: https://www.seoreviewtools.com/html-headings-checker/

    – @MadWay @phenomlab @Hari

    wrote on last edited by phenomlab
    #2

    @Sala Which theme are you using? I expect there are two tags being presented - one by the theme itself, and one possibly by an SEO plugin you may have installed.

  • @Sala Which theme are you using? I expect there are two tags being presented - one by the theme itself, and one possibly by an SEO plugin you may have installed.

    wrote on last edited by Sala
    #3

    @phenomlab i will forward to you the login details you check. (Yandex and bing) are the ones reporting that issue. But weird thing, if its breadcrumb, there’s also breadcrumb in blogs and they don’t have reporting for multiple h1 tag.

  • wrote on last edited by
    #4

    off topic: there are still a few flarum links that are still indexed in google. it would be best if you plan a proper redirection for all of them

    install the redirection plugin and add this rule so the users will end up accessing the correct post instead of going to the home page

    301 redirection

    2b5582e1-e789-4634-a5b9-c707811f364a-image.png

    2623f516-08f6-4729-803f-e9ba8d36970a-image.png

  • off topic: there are still a few flarum links that are still indexed in google. it would be best if you plan a proper redirection for all of them

    install the redirection plugin and add this rule so the users will end up accessing the correct post instead of going to the home page

    301 redirection

    2b5582e1-e789-4634-a5b9-c707811f364a-image.png

    2623f516-08f6-4729-803f-e9ba8d36970a-image.png

    wrote on last edited by
    #5

    @Hari great point - @Sala should check this and create the redirects as you’ve advised.

  • @Hari great point - @Sala should check this and create the redirects as you’ve advised.

    wrote on last edited by
    #6

    alt text

    Apk search in health tag, what again were we trying out? 😂

    Situational awareness.

  • alt text

    Apk search in health tag, what again were we trying out? 😂

    Situational awareness.

    wrote on last edited by
    #7

    70+ top urls were generated with 301 permanent. Thank you Hari ☺️

    alt text

  • 70+ top urls were generated with 301 permanent. Thank you Hari ☺️

    alt text

    wrote on last edited by
    #8

    @Sala so does this resolve the issue?

  • @Sala so does this resolve the issue?

    wrote on last edited by
    #9

    @phenomlab No, for the h1 header to be fixed, it needs some code editing. I wish you would check for us since we’re editing on a mobile phone.

  • @phenomlab No, for the h1 header to be fixed, it needs some code editing. I wish you would check for us since we’re editing on a mobile phone.

    wrote on last edited by
    #10

    @Sala This isn’t something I’d recommend in terms of using a mobile phone to perform edits. I also need a response to this

    https://sudonix.com/topic/415/help-us-fixing-the-h1-header-tags?_=1674640646756

    My initial thoughts here are that your theme and an SEO plugin are doing the same thing in terms of H1 tags. In addition, you should also check Google Analytics to see if you still have cached pages there from before the move.

  • phenomlab phenomlab referenced this topic on
  • @Sala This isn’t something I’d recommend in terms of using a mobile phone to perform edits. I also need a response to this

    https://sudonix.com/topic/415/help-us-fixing-the-h1-header-tags?_=1674640646756

    My initial thoughts here are that your theme and an SEO plugin are doing the same thing in terms of H1 tags. In addition, you should also check Google Analytics to see if you still have cached pages there from before the move.

    wrote on last edited by
    #11

    @phenomlab after carefully checking the code i was able to fix the issue. There was a dnone h1 class tag that wasn’t supposed to be there.

    alt text

    Now reporting one h1 tag. Wooup!

  • wrote on last edited by phenomlab
    #12

    @Sala I’ve spent some time this morning reviewing your WordPress configuration. The issue of the duplicated h1 tag is being caused by AnsPress - you’ll no doubt recall I warned against using this “plugin” (if you can call it that - it’s terrible) here

    https://sudonix.com/topic/358/fresher-in-nodebb-install/6?_=1674640646763

    AnsPress is well-known in WordPress circles for being one of those plugins you’d avoid at all costs. I used it once - never again. It causes far too many issues, and provided you don’t mind your site suffering as a result in terms of performance, bugs, and the like, then ok. In relation to SEO, see the below

    https://anspress.net/questions/question/seo-issues/

    This was reported in October 2022, and it’s still not fixed.

    From my own independent review, I also see the following issues

    81a553b7-acac-43ab-baeb-13d956c41d5f-image.png

    The most damaging of these is content being served on both non-www and www URLS, which needs to be fixed ASAP. You’ll note that the h1 heading appears twice (which you’re already aware of)

    8065709b-6664-4a50-9cd4-2ca1e9dbe756-image.png

    However, aside from SEO, I see far more important issues that you need to resolve first

    • TTFB (Time to First Byte) - the page is incredibly slow to load - in some cases, it takes 2-3 seconds before any content is shown. This is a killer in itself as more than one second loading time is considered far too high.
    • 301 redirects are missing - in this case, you should have a global redirect so that the content is being served from the same domain at all times.

    The bottom line here, and the “fix” is to remove AnsPress. Clearly, this isn’t palatable from your perspective as there is significant investment on your side. I know from previous discussions that AnsPress was shipped with the theme you are using, but it’s a below-par plugin in terms of performance and stability.

    You’ll see below my attempts to get AnsPress working as far back as 2017 - I promptly gave up, because it was such a mess

    https://theme.co/forum/t/anspress-plugin-with-x-pro-integrity-stack/14015

    And finally, one very well respected WordPress resource (wpcrafter.com) parted ways with AnsPress in 2018 for similar reasons, which he clearly stated

    https://anspress.net/questions/question/very-serious-issue-with-upgrade-to-v4-1-9-multiple-emails-being-sent-out-to-everyone/

    262370bb-7d2b-499e-9d89-fac759b1e42d-image.png

    At this point, I would weigh up the investment in AnsPress and seriously consider removing it.

  • phenomlab phenomlab has marked this topic as solved on
  • phenomlab phenomlab forked this topic on

Did this solution help you?
Did you find the suggested solution useful? Support 💗 Sudonix with a coffee ☕
If your organisation needs deeper expertise around infrastructure, security, or technology leadership, learn more about Phenomlab Ltd. Many of the deeper technical guides behind Sudonix are published there.

Related Topics
  • configure ghost and wordpress combo

    Moved Solved WordPress ghost wordpress nginx
    9
    7 Votes
    9 Posts
    3k Views
    phenomlab
    @Madchatthew I’d always post for the reasons I stated above. It’s useful information and could save someone else the headache.
  • Hidden border

    Solved WordPress style
    17
    1 Votes
    17 Posts
    4k Views
    phenomlab
    @Sala yes please.
  • The theme came with space on left side

    Solved WordPress css
    7
    3 Votes
    7 Posts
    2k Views
    Sala
    @phenomlab yes it’s a different theme. The other one was not offering much on editable sidebar. It was like flarum hahah
  • Widget | CSS customization

    Solved WordPress css
    53
    17 Votes
    53 Posts
    19k Views
    phenomlab
    @Sala the only way you can achieve this is to use a robots.txt file and disallow access to those links.
  • Changing H2 color

    Solved WordPress customisation
    5
    3 Votes
    5 Posts
    2k Views
    phenomlab
    @Sala Just checked your site. This should work .bs-blog-post .title, .bs-blog-post .title a { color: #ffffff; } It’s worth noting the existing CSS, which uses variables like the below color: var(--head-color); These come under the :root section as below :root { --head-color: #212121; --stext-color: #000; --text-color: #718096; --wtext-color: #fff; --bg-color: #fff; --box-color: #fff; --border-color: #e2e8f0; --wrap-color: #eff2f7; } You can easily override these by using the CSS I provided at the top of this post, or you can change the underlying colours defined in the variables. However, taking this route may mean other objects are styled in the same way, which may not be the desired result.
  • No valid role attribute on elements

    Solved WordPress wordpress
    10
    0 Votes
    10 Posts
    4k Views
    Sala
    I found it here, ins elements can not have aria elements
  • Fixing YouTube videos css

    Solved WordPress css
    8
    2 Votes
    8 Posts
    3k Views
    Sala
    @phenomlab It looks good, but not anymore. I’ve already lost so much time. Now it’s time to move on
  • move out from flarum to wordpress

    WordPress wordpress flarum migration
    87
    52 Votes
    87 Posts
    45k Views
    phenomlab
    @Hari Glad to see this went so well, and that you’ve finally departed the Flarum ecosystem