Page 1 of 1
Need add a small html or java script code in the index
Posted: Fri May 14, 2010 2:53 am
by inactiveaccount9912

Hi! I have an opencart based website. An I added the website to some web directors , but now the problem is that some of the requires too add a small html or java script code in the index of my webpage. - the problem nr 1
Problem number 2 : I dont know how but from the html code of the index page has disspeared some meta tags (the ones for search engines) and i want to insert the back but i dont know where to do that.
If u know , what file do i have to open and edit please tell me. And specify the folder please .
Re: Help please
Posted: Fri May 14, 2010 3:42 am
by Xsecrets
if the stuff is supposed to go in your head tag it would be catalog/view/theme/default/template/common/header.tpl if they are supposed to go at the bottom of the file it would be. catalog/view/theme/default/template/common/footer.tpl
if you are not running the default theme replace default with your theme name.
Re: Help please
Posted: Fri May 14, 2010 4:01 am
by inactiveaccount9912
Thanks a lot . I solved the problem in the footer but i have a problem with the header. I guess in header i have to insert the meta tag , and the only meta tag is meta name and it looks like this <meta name="description" content="<?php echo $description; ?>" />
<?php } ?>
<base href="<?php echo $base; ?>
Any advice about how to insert another meta tag?
Re: Help please
Posted: Fri May 14, 2010 4:03 am
by inactiveaccount9912
Bt when i view source in opera meta name looks like this meta name="description" content="cartuse, tonere, imprimante, copiatoare, laptop, monitoare, vidoeproiectoare, canon, brother, hp, lexmark, samsung, xerox, ploiesti, prahova
" />
Re: Help please
Posted: Fri May 14, 2010 4:19 am
by Xsecrets
that's because the meta description tag gets dynamically populated with whatever you put in the meta description field of your product/category etc.
if you need to add another meta tag there just add it. What meta tag in particular are you needing to add?
and by the way the meta description is really supposed to be a short prose type description not a comma separated list of keywords.
Re: Help please
Posted: Fri May 14, 2010 4:36 am
by inactiveaccount9912
Dude thanks a lot.
Re: Need add a small html or java script code in the index
Posted: Fri May 14, 2010 6:20 am
by Xsecrets
there are several different kinds of meta tags the description should be short sentence type description (it's sometimes used by google in their little description portion) then there's keywords which is the comma separated list of keywords and phrases. The keyword meta tag is no in opencart at this point. It is not really used by any of the major search engines anymore, but many people believe they need it, so it is being added into the next version. And of course there's tons of other meta tags, but those are the two most common.
Re: Need add a small html or java script code in the index
Posted: Tue May 15, 2012 11:57 pm
by james_bargainmarket
Hi,
Regarding this, Can anyone tell me how i can add meta keywords that are in the title page of my website? i get keywords if i open a category or product but i require keywords to be displayed when i open my website.
http://www.bargainmarket.com.au , if you open it and goto page source, you can see meta description but no keywords.
Can anyone please tell me how i can have that on the 1st page.
i have tried adding keyword from header.tpl in catalog and admin etc but no use.
ANY SUGGESTION GUYS???