Archived topic
Archive page h1 without link?
5 replies · Started by Anders on May 5, 2021
Hi,
I'm building a site with GeoDirectory + GP Premium where different CPTs are created.
For the archive pages I believe it's GeneratePress that constructs the archive heading/title.
These are h2 and the title is linked (to the same archive page), is this expected behaviour?
When I try switching to other themes (Twenty Twenty-One for example) the archive heading is always h1 and not linked, which is how I would like to have it with GeneratePress as well. How can I achieve this?
I'm on localhost so I can not send a link.
Thanks!
Hi there,
the default functionality of GP as is with the Official Twenty* themes is the Archive/Blog pages all display H2 Headlines for the posts and those link to the individual post.
In general an Archive would not use H1 as the heading as that would generate multiple H1's on the same page - which is not good practice for SEO.
If these are templates that are created in a CPT or by the GeoDirectory plugin then they must be doing something different. But without seeing the site it would be hard for me to offer any advice.
Hi,
For each CPT archive -page there is one main title (the name of the CPT), this is h1 and without link on both Twenty Twenty-One and all other themes I try. Strangely this spot is h2 and with a link to the same page on GeneratePress, does it make any sense?
Thanks!
Hi Anders,
GP doesn't add link to CPT archive's title, and by default it's H1.
H2 headings and links are for the CPT posts titles.
Can you make sure there's no plugin or custom function is modifying the default settings?
Hi,
I was able to solve this by disable GeneratePress Content title element on this archive template and use a title shortcode from GeoDirectory instead. They told me GeneratePress theme adds own title with link & h2 (it did not happen with any other theme I tried), not sure if this is an effect from using GP and GeoDirectory together. So this is all good now but do you know of many other GP customers working with GeoDirectory?
Thanks!
This is actually the first time I hear about this plugin, I'm not sure how many GP users are using it.
As I said before, GP doesn't modify the H1 to H2 or add any link to it.
I'm glad it works for you now :)