Page Titles and Meta Titles

This topic contains 11 replies, has 4 voices, and was last updated by  Alex Rollin 5 years, 1 month ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #478877

    John Overend
    Full Member
    Post count: 103

    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.

    #478882

    Alex Rollin
    Moderator
    Post count: 27815

    You 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.

    #478883

    Guust
    Moderator
    Post count: 29970

    What 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

    #478918

    John Overend
    Full Member
    Post count: 103

    We’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.

    #478925

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi 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.php

    Thanks,

    Stiofan

    #478929

    John Overend
    Full Member
    Post count: 103

    Hi 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

    #478949

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi 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

    #478952

    John Overend
    Full Member
    Post count: 103
    This reply has been marked as private.
    #479018

    John Overend
    Full Member
    Post count: 103
    This reply has been marked as private.
    #479038

    John Overend
    Full Member
    Post count: 103

    Having 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.

    #479041

    John Overend
    Full Member
    Post count: 103

    This only affected GD listings but, oddly, when I turned Query Monitor back on it cleared the error and seems to be fine now.

    #479119

    Alex Rollin
    Moderator
    Post count: 27815

    Glad to hear it!

Viewing 12 posts - 1 through 12 (of 12 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket