Private: Home › Forums › WordPress Themes › Elvyre – Retina Ready WordPress Theme › This Theme Is Producing Duplicate Titles?? › Reply To: This Theme Is Producing Duplicate Titles??
February 28, 2015 at 4:27 pm
#2317
Participant
Hello,
I have tested it on my local installation and the duplicated title tags started appearing once i updated WordPress to 4.1.1. version.
To fix this issue, go to wp-content/themes/elvyre and open a file called header.php.
Find the following code at the beginning of file:
<title>
<?php
/*
* Print the <title> tag based on what is being viewed.
*/
global $page, $paged;
wp_title('|', true, 'right');
// Add the website name.
bloginfo('name');
// Add the website description for the home/front page.
$site_description = get_bloginfo('description', 'display');
if ($site_description && ( is_home() || is_front_page() ))
echo " | $site_description";
// Add a page number if necessary:
if ($paged >= 2 || $page >= 2)
echo ' | ' . _('Page ', 'pi_framework') . max($paged, $page);
?>
</title>
Replace this code with the following one:
<title><?php wp_title(''); ?></title>
The duplicated title tags shouldn’t be displayed anymore.
Robert