amythepoet Posted December 24, 2003 Posted December 24, 2003 Hi, I'm trying in vain to add meta tags to my new oscommerce site. But I can't find the right file to update? I thought it was in headers, or the index.php, I can't find the right one. I've looked inside the category folder, then insdie the includes f older.. please help! Amy
Jack_mcs Posted December 24, 2003 Posted December 24, 2003 I don't think you can add them as easily as you can with html files. I think the recommended way is to install the Header Tags Controller contribution. Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
H2O Posted December 24, 2003 Posted December 24, 2003 Hi. Since index.php and product_info.php are the most viewed pages, I added meta tags manually in those two pages. You can do so by opening both of these files, and find something similar to the following: <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html <?php echo HTML_PARAMS; ?>> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <title><?php echo TITLE; ?></title> <?php require(DIR_WS_INCLUDES . '/' . 'meta_tags.meta'); ?> <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> <link rel="stylesheet" type="text/css" href="stylesheet.css"> </head> If you notice the line 6, I have included the meta-tags file - which is basically a text-file with all my meta information, and saved as meta_tags.meta so I don't confuse it with anything else. You can even replace that line by adding meta-tags directly there as well. Hope this helps, good luck. :)
amythepoet Posted December 24, 2003 Author Posted December 24, 2003 Thank you so much! I will give it a go! Amy
Recommended Posts
Archived
This topic is now archived and is closed to further replies.