Site logo

[Support request] Double H1 Tag

Home Forums Support [Support request] Double H1 Tag

Home Forums Support Double H1 Tag

Viewing 15 posts - 1 through 15 (of 20 total)
  • Author
    Posts
  • #1729569
    Atefan

    Hi,

    I just see at the given website, that I have 2 H1 Tags in this category.

    When i remove the hook what I have there, i still get 1.

    looking at the source code, without the hook, i see this:

    </header>
    <div id="page" class="site grid-container container hfeed">
    <div id="content" class="site-content">
    <div id="primary" class="content-area">
    <main id="main" class="site-main">
    <div class="generate-columns-container "> <header class="page-header">
    <h1 class="page-title">
    Screen Printing Equipment </h1>
    </header>

    2 header closing?

    How could I change this, funny is on a other category I don’t have this problem.

    Thanks

    #1730126
    Ying
    Staff
    Customer Support

    Hi Atefan,

    I believe one is using Header element, and the other is using Block element, is it?

    Header element is using dynamic content (page title in this case) while block element is not, that’s why the default page title is still there, it’s just been hidden bydisplay: none;

    I would recommend updating to GP Premium 2.0, with Generateblocks the block element has the dynamic content feature. Here’s an article with a demo video on how to create a page hero using the new block element:
    https://docs.generatepress.com/article/block-element-page-hero/

    Let me know if that helps 🙂

    #1739780
    Atefan

    Hi Ying,

    i have no Element for this page.
    and
    GP Premium 2.0, please do not use it on production websites.

    And funny enough, i have only 2 pages with this problem.

    What can i do?

    Regards

    #1740024
    David
    Staff
    Customer Support

    Hi there,

    the page with 2 x H1’s has a Block Element that is hooked in before the main content. Its whats displaying the content above the Post List.

    Then theres the archive page title which is being hidden with CSS.
    As you’re using either a Block Elementor or a Page Header on your archives – you can remove the Theme’s H1 by adding this PHP Snippet:

    add_action( 'wp', function() {
        remove_action( 'generate_archive_title', 'generate_archive_title' );
    } );
    #1740064
    Atefan

    Dear David,

    These are normal posts, no archive, and how it gets there?
    and from where the hook should come, I checked all, but no elements on this post.

    Regards

    #1740586
    Ying
    Staff
    Customer Support

    Category pages are archive pages.

    Any chance you can provide credentials to the site? We could have a look at the backend.

    Let us know 🙂

    #1740738
    Atefan

    sure, sorry, I believed I post them.

    #1740783
    Ying
    Staff
    Customer Support

    I mean the admin access to the dashboard, need to take a look at the backend, thanks 🙂

    #1741126
    Atefan

    Here you are.
    Thanks

    #1741240
    David
    Staff
    Customer Support

    We need the URL for your login page as it looks like the default ones have been restricted.

    #1741244
    Atefan

    check below, please David

    #1741292
    David
    Staff
    Customer Support

    Well that has got me stumped.
    The /equipment/ URL which has to the two H1’s – is a Category Archive. The category slug is: equipment. But when i check the backend of your site in Posts > Categories – there is NO categories registered… so how is the Equipment page being generated ?

    #1741369
    Atefan

    David I guess you are at the wrong WordPress URL.

    and how you get there???

    #1741476
    David
    Staff
    Customer Support

    I am using the login ID you provided – if i login again with your new links i still arrive at the same place.

    #1741482
    Atefan

    my feeling is, you are at domain 1, but all info i have given you are for domain 2.
    please check and i got the msg password changed on domain2.
    so you should be in domain 2

Viewing 15 posts - 1 through 15 (of 20 total)
  • You must be logged in to reply to this topic.