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.
Comments
Post a Comment