Site logo

Archived topic

Double H1 Tag

19 replies · Started by Atefan on April 11, 2021

Viewing posts 1–15 of 20

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

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 :)

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' );
} );

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

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 :)

sure, sorry, I believed I post them.

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

Here you are.
Thanks

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

check below, please David

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 ?

David I guess you are at the wrong WordPress URL.

and how you get there???

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

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

This archived topic is closed to new replies.