Jump to content

[SOLVED]meta tags problem....


SonnyBoyII

Recommended Posts

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.php

please help!!

regards
SonnyBoy

Link to comment
Share on other sites

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.

regards
SonnyBoy

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...