Page 1 of 1

How to add Meta Keywords to Homepage

Posted: Sat May 05, 2012 8:32 am
by URAGANU
Hi Guys,

I thought this will be very helpful for those who search the internet and dont want to install anything.

Please REMEMBER, your keywords must be found in the content of your page in order to be counted in.

Here what you should do if you want to add specific meta keywords to your OpenCart Homepage.

Open the following file:
/catalog/view/theme/YOURTHEME/template/common/header.tpl

Find:

Code: Select all

<?php if ($keywords) { ?>
<meta name="keywords" content="<?php echo $keywords; ?>" />
<?php } ?>
Replace with:

Code: Select all

<?php if ($keywords) { ?>
<meta name="keywords" content="<?php echo $keywords; ?>" />
<?php }  else { ?>
<meta name="keywords" content="your, key, words etc" />
    <?php } ?>
That's all !

Re: How to add Meta Keywords to Homepage

Posted: Mon Jul 08, 2013 3:46 pm
by rjmanuel
thank you for sharing this code. :)

Re: How to add Meta Keywords to Homepage

Posted: Tue Nov 19, 2013 11:25 pm
by sarikabtech
i tried this code but its not working ..

Re: How to add Meta Keywords to Homepage

Posted: Wed Feb 11, 2015 4:44 pm
by eoliann
thank you, its working on 1.5.6.4 and 2.0 :*