sorinmarius 0 Posted April 3, 2012 Hi, I have a big question that has been on my mind since forever. I gave tags to every product in my store. When I click on the tag from my tag module in the sidebar, every tag page has the same "title tag". How can I change the title on the Tag Page from "Search" to the tags name? Please Help! Thanks. Share this post Link to post Share on other sites
Skydone 4 Posted December 9, 2012 I am also looking for a solution for this, I use the tags for organice my products. It will be great if just can print the query text in the title tag of a search results page, but in SEO configuration I can't write parameters or variables. I'm using PS 1.5.0.17. Share this post Link to post Share on other sites
Skydone 4 Posted December 9, 2012 I only have found this code related, but not tested yet: http://forge.prestashop.com/browse/PSCFI-6432 1 Share this post Link to post Share on other sites
lildaan 0 Posted April 24, 2013 Works really great! Now I only have to change the h1-tag on the page ass well.... Share this post Link to post Share on other sites
ropencho 0 Posted September 11, 2013 Hi!!! In wich file i must insert this code? Share this post Link to post Share on other sites
qiqiy_888 3 Posted March 8, 2016 Works really great! Now I only have to change the h1-tag on the page ass well.... Hi, can you please tell us where to insert to this code ? does it works well on 1.6 ? thank you Share this post Link to post Share on other sites
qiqiy_888 3 Posted March 8, 2016 in pre v1.6, i added this code, it works well: classes/Meta.php Find the getMetaTags function add the code between "add by ruby" -------------------------------------------- public static function getMetaTags($id_lang, $page_name, $title = '') { if (!(!Configuration::get('PS_SHOP_ENABLE') && !in_array(Tools::getRemoteAddr(), explode(',', Configuration::get('PS_MAINTENANCE_IP'))))) { if ($page_name == 'product' && ($id_product = Tools::getValue('id_product'))) { return Meta::getProductMetas($id_product, $id_lang, $page_name); } elseif ($page_name == 'category' && ($id_category = Tools::getValue('id_category'))) { return Meta::getCategoryMetas($id_category, $id_lang, $page_name, $title); } elseif ($page_name == 'manufacturer' && ($id_manufacturer = Tools::getValue('id_manufacturer'))) { return Meta::getManufacturerMetas($id_manufacturer, $id_lang, $page_name); } elseif ($page_name == 'supplier' && ($id_supplier = Tools::getValue('id_supplier'))) { return Meta::getSupplierMetas($id_supplier, $id_lang, $page_name); } elseif ($page_name == 'cms' && ($id_cms = Tools::getValue('id_cms'))) { return Meta::getCmsMetas($id_cms, $id_lang, $page_name); } elseif ($page_name == 'cms' && ($id_cms_category = Tools::getValue('id_cms_category'))) { return Meta::getCmsCategoryMetas($id_cms_category, $id_lang, $page_name); } //add by ruby elseif ($page_name == 'search') { if ($placeholder = Tools::getValue('search_query')) { $the_title = 'Results for matching "'.$placeholder.'" ~~ '.Configuration::get('PS_SHOP_NAME'); $srt['meta_description'] = 'The result is '.$placeholder." from ".Configuration::get('PS_SHOP_NAME'); } else if ($placeholder = Tools::getValue('tag')) { $the_title = 'Tagged with "'.$placeholder.'" ~~ '.Configuration::get('PS_SHOP_NAME'); $srt['meta_description'] = 'The result is '.$placeholder." from ".Configuration::get('PS_SHOP_NAME'); } else { $the_title = 'Product Search ~~ '.Configuration::get('PS_SHOP_NAME'); $srt['meta_description'] = 'The result is '.$placeholder." from ".Configuration::get('PS_SHOP_NAME'); } $srt['meta_title'] = $the_title; return $srt; } // end add by ruby } return Meta::getHomeMetas($id_lang, $page_name); } Share this post Link to post Share on other sites
Daresh 497 Posted March 8, 2016 Hi, check out this module: https://www.prestashop.com/forums/topic/499087-free-module-seo-friendly-titles-for-tags/ Share this post Link to post Share on other sites
Manoj Agarwal 1 Posted June 10, 2019 how to use this i had installed the module, now what i need to do? Share this post Link to post Share on other sites
Daresh 497 Posted June 10, 2019 Nothing, it just changes the title Share this post Link to post Share on other sites
Tony153 0 Posted June 20, 2019 (edited) How this code works? any one please help me to understand this code. www.tellthebell.com Edited June 21, 2019 by Tony153 (see edit history) Share this post Link to post Share on other sites