Jump to content

Double title SEO


edvinaszu

Recommended Posts

Hi all,

 

Maybe sombody have or had this problem like me and know how to fix it, after update from 1.6.0.14 to 1.6.1.0 i saw that in my source code doubled title. Or it's not bad for SEO in google?

 

<!DOCTYPE HTML>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="lt-lt"><![endif]-->
<!--[if IE 7]><html class="no-js lt-ie9 lt-ie8 ie7" lang="lt-lt"><![endif]-->
<!--[if IE 8]><html class="no-js lt-ie9 ie8" lang="lt-lt"><![endif]-->
<!--[if gt IE 8]> <html class="no-js ie9" lang="lt-lt"><![endif]-->
<html lang="lt-lt">
<head>
                             <title>Apranga | Rūbai | Drabužiai internetu | pigumas.lt</title>
<meta charset="utf-8" />
<title>Apranga | Rūbai | Drabužiai internetu | pigumas.lt - Pigumas.lt</title>
 
www.pigumas.lt in this site.
 
And in all pages same. 
If someone have answer it will be nice.
 
Best Regards. Have a nice day.
Edited by edvinaszu (see edit history)
Link to comment
Share on other sites

Hi,

 

header.tpl file in themes file have code to dynamically add title on each page as per mention in back-office.

 

It looks something like following.

<head>
<title>{$meta_title|escape:'htmlall':'UTF-8'}</title>
{if isset($meta_description) AND $meta_description}
<meta name="description" content="{$meta_description|escape:html:'UTF-8'}" />
{/if}

Could you check your header.tpl file for duplicate code.

 

Link to comment
Share on other sites

Hi,

Thanks for answer. Here:

<head>
              {assign var=shop_name_to_trim value=" - $shop_name"}
               <title>{$meta_title|replace:$shop_name_to_trim:''|escape:'htmlall':'UTF-8'}</title>
<meta charset="utf-8" />
<title>{$meta_title|escape:'html':'UTF-8'}</title>
{if isset($meta_description) AND $meta_description}
<meta name="description" content="{$meta_description|escape:'html':'UTF-8'}" />
{/if}
{if isset($meta_keywords) AND $meta_keywords}
<meta name="keywords" content="{$meta_keywords|escape:'html':'UTF-8'}" />
{/if}
Link to comment
Share on other sites

Hi,

You have 2 times title tag. It can seen in your pasted code as well.

 <title>{$meta_title|replace:$shop_name_to_trim:''|escape:'htmlall':'UTF-8'}</title>
<meta charset="utf-8" />
<title>{$meta_title|escape:'html':'UTF-8'}</title>
 
Therefore double title showing on webpages. You need to keep one and remove another.
 
Edited by Zohaib-fk
Post Updated (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...