timber / starter-theme

The "_s" for Timber: a dead-simple theme that you can build anything from
MIT License
812 stars 274 forks source link

Title Tag duplicated with Yoast SEO #69

Closed pascalknecht closed 8 months ago

pascalknecht commented 5 years ago

Sometimes the title tag gets duplicated with the current setup when using Yoast SEO Plugin.

alexwoollam commented 5 years ago

This is a real stab in the dark without seeing any src/yeost settings, but:

Have you hard-coded the <title>?

Check this line in the functions.php (in the theme_supports function):

                 /*
         * Let WordPress manage the document title.
         * By adding theme support, we declare that this theme does not use a
         * hard-coded <title> tag in the document head, and expect WordPress to
         * provide it for us.
         */
        add_theme_support( 'title-tag' );