barry_s Posted July 30, 2006 Share Posted July 30, 2006 Hi, I need to add a link in all of my product descriptions, that takes users to a page where they can view images of product options. I know how to do this using a regular html link, but was hoping that there is a way that I can do this by placing a reference to the link in somewhere like english.php and then referencing that link so that I only have to change the link in one place when I move from my development box to my live server. Any help would be much appreciated. Thanks Barry Link to comment Share on other sites More sharing options...
sharplab Posted July 30, 2006 Share Posted July 30, 2006 Hi, I need to add a link in all of my product descriptions, that takes users to a page where they can view images of product options. I know how to do this using a regular html link, but was hoping that there is a way that I can do this by placing a reference to the link in somewhere like english.php and then referencing that link so that I only have to change the link in one place when I move from my development box to my live server. Any help would be much appreciated. Thanks Barry If you want the link simply in the description text then all you need to do is use the: <a href=""> </a> html code. You dont need to play around with the english.php file unless the link is to be placed within some php code. Your product description text is simply html generated so a simple: Option 1 Blue Widgets Arm Extension Upgrade Option Could be a simple line like: <a href="images/widgetsarm-extend.jpg" target="blue1">Option 1</a> - Blue Widgets Arm Extension Upgrade Option Only problem is the link will have the same lok and feel as all your other <a> links as this is defined in your style.css file. Steve Current Contributions: Page Cache, Center Store, Ultimate URL's, Header Tags, Product Description , Image Add To Cart - , Store Cache Link to comment Share on other sites More sharing options...
barry_s Posted July 30, 2006 Author Share Posted July 30, 2006 If you want the link simply in the description text then all you need to do is use the:<a href=""> </a> html code. You dont need to play around with the english.php file unless the link is to be placed within some php code. Your product description text is simply html generated so a simple: Option 1 Blue Widgets Arm Extension Upgrade Option Could be a simple line like: <a href="images/widgetsarm-extend.jpg" target="blue1">Option 1</a> - Blue Widgets Arm Extension Upgrade Option Only problem is the link will have the same lok and feel as all your other <a> links as this is defined in your style.css file. Steve Thanks Steve, I think I was having a stupid moment, I've followed your suggestion and of course it worked. I added a class to the stylesheet to highlight the links as well. Thanks! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.