Page Titles and Meta Titles
This topic contains 11 replies, has 4 voices, and was last updated by Alex Rollin 6 years ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket-
AuthorPosts
-
April 6, 2019 at 12:38 pm #478877
Although it’s not a major issue, is there a reason the page titles on category/archive pages are H2, when the titles are H1 on location pages. Clearly it would be better if all titles were H1.
On the same theme, we would prefer to use Yoast for more granular control of Meta titles – which are more important than H1s – but Yoast doesn’t offer control of page titles. Are there are any plans to allow Yoast to do its thing and yet still allow page title control from GD?
I appreciate we can remove page titles from the archive templates and create an intro section for each category including an H1. But that takes some considerable time, and it would have been good to have page title control out of the box, even if we subsequently change it.
April 6, 2019 at 12:53 pm #478882You have posted this in core plugin support for GDV1.
However, it sounds like you are using GDV2.
Maybe you are also using a GD theme? Which one?
Of note, GDV2 the plugin comes with a design element called “GD Post Title” which can be set as H1 or H2. Have you tried that?
DS and Supreme both for GDV2 have H1s on their archive pages.
April 6, 2019 at 12:55 pm #478883What theme are you using?
GD Archive titles are H1 in our themes: https://wpgeo.directory/starter/places/category/hotels/
https://wpgeo.directory/supreme-directory/places/category/hotels/I don’t quite understand the Yoast question. Is that not a question you should ask Yoast?
Thanks
April 6, 2019 at 2:47 pm #478918We’re using a Genesis child theme which doesn’t create archive titles by default. If we use the built-in Genesis functionality to have archive titles it creates them as H1. But those from GD are H2.
As I said, Yoast doesn’t offer title for archive pages, so had expected that would remain even if we use Yoast. But we can get round it.
April 6, 2019 at 5:08 pm #478925Hi John,
(assuming you are using GDv2)
Thanks for reporting this, i have added a fix for this and it will be in the next release.if you need it sooner simply replace this file in your plugin:
https://github.com/AyeCode/geodirectory/blob/master/includes/class-geodir-compatibility.phpThanks,
Stiofan
April 6, 2019 at 5:56 pm #478929Hi Stiofan
Thank you; that looks like it fixes the H2 issue (yes, we are using GDV2).
It seems to have been dismissed as a Yoast issue, but perhaps I could try again?
Yoast offers no control over page titles (only meta titles). The GD control of archive page titles is useful, but lost if we use Yoast. If we use Yoast then a page like https://www.carsuk.net/places/essex/, which has a page title of ‘Motoring Directory Essex’ then just shows the ‘GD Archive’ page name. Not ideal.
Thanks
John
April 6, 2019 at 7:22 pm #478949Hi John,
I think that might be the best option even if its disabled, please replace this file in your plugin to test (changes will be in the next release) https://github.com/AyeCode/geodirectory/blob/master/includes/class-geodir-seo.php
Thanks,
Stiofan
April 6, 2019 at 7:34 pm #478952This reply has been marked as private.April 7, 2019 at 12:17 pm #479018This reply has been marked as private.April 7, 2019 at 3:34 pm #479038Having sorted the site I changed the files to make page headers H1 and to allow page titles even with Yoast enable.
The result is an error thrown on al single listing pages:
Warning: count(): Parameter must be an array or an object that implements Countable in /var/sites/c/carsuk.net/public_html/wp-includes/meta.php on line 210
I reverted to GD titles and meta and cleared the cache but to no effect.
April 7, 2019 at 3:40 pm #479041This only affected GD listings but, oddly, when I turned Query Monitor back on it cleared the error and seems to be fine now.
April 8, 2019 at 7:21 am #479119Glad to hear it!
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket