SonnyBoyII Posted July 25, 2010 Share Posted July 25, 2010 If I type root address: www.mysite.co.uk/ and then view the source code I have no meta-tags such as: keywords, site description, and title.... www.mysite.co.uk/index.php works fine, it has all meta-tags !!I put all metas in backoffice>>Preferencess>> metatags >> index.phpplease help!!regardsSonnyBoy Link to comment Share on other sites More sharing options...
SonnyBoyII Posted July 25, 2010 Author Share Posted July 25, 2010 I found the solution on the internet. for some reasons I had to put this code(by replacing the original one) : static public function getMetaByPage($page, $id_lang) { if(empty($page)) $page = 'index'; return Db::getInstance()->getRow(' SELECT * FROM '._DB_PREFIX_.'meta m LEFT JOIN '._DB_PREFIX_.'meta_lang ml on (m.id_meta = ml.id_meta) WHERE m.page = \''.$page.'\' AND ml.id_lang = '.intval($id_lang)); } into classes/Meta.php file.regardsSonnyBoy 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