Jump to content

[Solved] Meta tag just for index page


fbcskk2

Recommended Posts

Are you saying that you want meta-tags on your index.php page only and no other pages? I'm not sure why you would want to do that, but you could change line 8 of header.tpl in your theme's directory from:

{if isset($meta_keywords) AND $meta_keywords}



to:

{if $page_name == 'index' AND isset($meta_keywords) AND $meta_keywords}

Link to comment
Share on other sites

Are you saying that you want meta-tags on your index.php page only and no other pages?
Yes, but I mean only one specific metatag for "google webmaster tools" --> <meta name="google-site-verification" content="xxxxx.etc." /> So should it be something like
{if $page_name == 'index' } <meta name="google-site-verification" content="xxxxx.etc." />
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...