Post by URAGANU » Sat May 05, 2012 8:32 am

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 !

Newbie

Posts

Joined
Tue Mar 27, 2012 6:45 am

Post by rjmanuel » Mon Jul 08, 2013 3:46 pm

thank you for sharing this code. :)

Newbie

Posts

Joined
Mon Jul 08, 2013 2:58 pm

Post by sarikabtech » Tue Nov 19, 2013 11:25 pm

i tried this code but its not working ..

Sarika Singh
http://www.zealneotech.com


Newbie

Posts

Joined
Fri May 24, 2013 4:31 pm
Location - Delhi,India

Post by eoliann » Wed Feb 11, 2015 4:44 pm

thank you, its working on 1.5.6.4 and 2.0 :*

Newbie

Posts

Joined
Tue Sep 07, 2010 6:45 pm
Who is online

Users browsing this forum: Baidu [Spider] and 142 guests