• I created a theme from scratch but i am not seeing the site name and tagline appearing in the tabs. How do I add support for this.

Viewing 1 replies (of 1 total)
  • Hi,
    This is the function to add titles dynamically
    add_theme_support( 'title-tag' );

    But his need to hook with an Action hook called: after_setup_theme

    Something like:

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

    Put this snippet on your functions.php file.

    Hopefully, it will be helpful for you.

    Thanks

Viewing 1 replies (of 1 total)
  • The topic ‘Site name and Tagline’ is closed to new replies.