Support Forum

For all questions related to themes and plugins!

Enter search keyword e.g. "footer color".

  • Registration is Required

    Registration is required to post questions to support forum. ThemeForest buyers also need to obtain Purchase code to be able to post on forum.

    Please read here how to obtain Purchase code.

#2317
Robert Kavgić
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