SEOPress Pro and X Pro - Fixing missing add_theme_support in your theme

Have bought and installed SEOPress Pro. Using latest version of Pro and one of the “warnings/recommendations” in the SEOPress dashboard is: “Your theme doesn’t use add_theme_support(‘title-tag’);”.

There’s a guide on this page on how to fix this: https://www.seopress.org/support/guides/fixing-missing-add_theme_support-in-your-theme/?utm_source=plugin&utm_medium=wp-admin&utm_campaign=seopress

I’m using the Pro child theme and have added this code in functions.php in the wp-content / themes / x-child directory

function seopress_theme_slug_setup() {
    add_theme_support( 'title-tag' );
}
add_action( 'after_setup_theme', 'seopress_theme_slug_setup' );

But the SEOPress still saying the same warning/recommendation message. Can you advise on what to do here?

Edit: Nevermind - my mistake. Works now.

Glad to hear you got it working! Thanks for letting us know. Using a child theme is definitely the way to go here. Nice job.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.