Wordpress title-tag -


in wordpress, wp_title showing twice or output twice.

i have added add_theme_support('title-tag') in functions.php.

the website's head:

<head>      <meta name="description" content="">      <meta http-equiv="content-type" content="text/html; charset=utf-8"/>      <meta name="viewport" content="width=device-width, initial-scale=1">      <?php me_get_favicon(); ?>      <title><?php wp_title(); ?></title>  </head> 

you don't need put <title><?php wp_title(); ?></title> in header.php file if you've added add_theme_support('title-tag') functions.php file.

wordpress automatically adds title tag function. you're adding manually , you're telling wordpress add title tag. remove title tag header, since function more recent , dynamic addition wordpress core.

https://codex.wordpress.org/title_tag


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - Bypass Geo Redirect for specific directories -

php - .htaccess mod_rewrite for dynamic url which has domain names -