edvinaszu Posted July 31, 2015 Share Posted July 31, 2015 (edited) 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 July 31, 2015 by edvinaszu (see edit history) Link to comment Share on other sites More sharing options...
Zohaib-fk Posted August 1, 2015 Share Posted August 1, 2015 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 More sharing options...
edvinaszu Posted August 1, 2015 Author Share Posted August 1, 2015 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 More sharing options...
Zohaib-fk Posted August 2, 2015 Share Posted August 2, 2015 (edited) Hi, Your title tag in header.tpl looks fine. Could you provide your website URL. PrestaShop Tutorials Videos [How to do Tasks] https://www.prestashop.com/forums/topic/907438-prestashop-tutorials-videos-how-to-do-tasks/ Edited June 26, 2021 by Zohaib-fk Post Updated (see edit history) Link to comment Share on other sites More sharing options...
edvinaszu Posted August 2, 2015 Author Share Posted August 2, 2015 Hi, Thank you for replay. Hm where the problem ;/ site is www.pigumas.lt Link to comment Share on other sites More sharing options...
Zohaib-fk Posted August 4, 2015 Share Posted August 4, 2015 (edited) 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. PrestaShop Tutorials Videos [How to do Tasks] https://www.prestashop.com/forums/topic/907438-prestashop-tutorials-videos-how-to-do-tasks/ Edited June 26, 2021 by Zohaib-fk Post Updated (see edit history) Link to comment Share on other sites More sharing options...
edvinaszu Posted August 5, 2015 Author Share Posted August 5, 2015 Hello, Thank you mate, very much. Link to comment Share on other sites More sharing options...
Zohaib-fk Posted August 5, 2015 Share Posted August 5, 2015 (edited) You are welcome PrestaShop Tutorials Videos [How to do Tasks] https://www.prestashop.com/forums/topic/907438-prestashop-tutorials-videos-how-to-do-tasks/ Edited June 26, 2021 by Zohaib-fk Post Updated (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now