• Hi

    I am having an issue with category meta titles when yoast is enabled.

    I selected a page to be used in Events manager for category display. This page has the title: Categories.

    Now when i list a category, the meta title is not rewritten to the actual category name, it stays as “Categories – Website title”.
    The page title in header is correct however.
    If i disable Yoast, all is fine.
    So it’s 100% a conflict with Yoast.

    On another site, last year, with older version of both used events manager and yoast, all works fine. Here EM is 5.9.11.3 and YOAST is 16.6.1. This site is archived.

    On the current site, both EM and Yoast are latest versions, and seems there is a conflict.

    I underline, in EM, the title rewrite is NOT disabled, all settings are like in the example test site.

    Any idea where this could be checked or fixed?

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Events Manager is not changing the title tag for that page so it must be due to Yoast (as you said when you disable Yoast, all is fine). Events Manager is only changing the title tag for Event posts and Location posts.

    Thread Starter bszakacs

    (@bszakacs)

    Well EM it must change title for category page, since it will display the “category name” instead of “category” in normal conditions.

    Another option would be, to disable the use of a certain page for categories from settings. In this case meta title is fine, but than the category page format is not what i’m after (the basic structure, not the actual content from category_page_format.php), as it uses a grid and i want flex. But to catch this, i need to add a classname to the body, just for category pages. I tried:

    function custom_taxonomy_slug_to_body_class( $classes ){
    if( is_tax(‘events-category’) ){
    $classes[] = ‘WHATEVER’;
    }
    return $classes;
    }

    But it’s not working. I thought “events-category” are a taxonomy but seems they are handled as page when output.

    So i’m stuck, and need to fix this meta title thing somehow ??

    • This reply was modified 1 year, 3 months ago by bszakacs.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Yoast and Events Manager category title conflict’ is closed to new replies.