![]() |
X-cart 5:How to modify Contact Us meta tags?
At www.cheapglasses.net, I found the following pages have the same description:
Contact us My Account Register <meta name="description" content="The powerful shopping cart software for web stores and e-commerce enabled stores is based on PHP5 with SQL database with highly configurable implementation based on templates" /> How can we modify each page's meta tags (title, description,keywords),pls? |
Out of the box you can change the meta description and keywords for content pages only (products, categories, brands, articles, ...). I.e. for those pages that contain information that people may search for in search engines. I believe that for other types of pages the meta tags are almost useless and give you nothing from the SEO perspective.
However, you can alter the tags by creating a module that overrides the \XLite\Controller\AController::getMetaDescription( ) and \XLite\Controller\AController::getKeywords() methods. |
For the contact us page you should create classes/XLite/Module/XC/CustomSkin/Controller/Customer/ContactUs.php with the following contents and then enable Custom Skin module (or redeploy the store if the module is enabled already):
Code:
<?php |
I have create ContactUs.php under classes/XLite/Module/XC/CustomSkin/Controller/Customer/
but did not find this module name under /admin.php?target=addons_list_installed |
Do you see in under /admin.php?target=addons_list_installed&substring=c ustom%20skin ?
If not, please check if there is the classes/XLite/Module/XC/CustomSkin/Main.php file. also re-deploy your store via the admin area of your X-Cart, this is very important, after I re-deploy www.cheapeyeglasses.net, I got what I need. |
| All times are GMT +8. The time now is 10:41 AM. |
Powered by vBulletin Version 3.8.7
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.