Skip Navigation

[Résolu] Title Tag in Toolset Starter Theme

Ce fil est résolu. Voici une description du problème et la solution proposée.

Problem:
Why does the Toolset Starter Theme nothave a title Tag in it's header?

Solution:
Because it uses

add_theme_support( "title-tag" );

Relevant Documentation:
https://developer.wordpress.org/reference/functions/add_theme_support/
https://codex.wordpress.org/Title_Tag
http://bravokeyl.com/exploring-title-tag-theme-feature/

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

This topic contains 4 réponses, has 2 voix.

Last updated by julieP Il y a 5 années et 2 mois.

Assigned support staff: Beda.

Auteur
Publications
#418938

Can you tell me please where I find the code that controls the content between <title></title> between the <head></head> tags?

I would expect to see this in header.php but nothing is there.

Thanks

#419059

add_theme_support( "title-tag" );

This is the answer to the magic here 🙂

WordPress Themes can now use Theme Support for the Title Tag, which means we do not need to hard code it anymore.
https://developer.wordpress.org/reference/functions/add_theme_support/
https://codex.wordpress.org/Title_Tag
hidden link

In Toolset Starter Theme this is added in functions.php on line 80.

#419103

but what do I need to do (and where) to change the format please?

#419202

I've been doing some searching online and I've found the necessary filter command to use in functions.php to change how my title tag appears so I don't need any further assistance. Thank you.

#419203

topic closed