Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

adding an HTML link in boxes


Guest

Recommended Posts

Posted

I am currently creating the site: www.sutherlandsfurniture.com/furniturephotos/

 

In the boxes in one of the columns I have attempted to put a link to an HTML page, outside the catalog, but can't figure out the correct syntax for it. Can someone help please? I would like to replace the links in the "information" box to link to pages in the main html folder of the site.

 

Thanks.

 

Gin

Posted

Just replace the link there now with an html link, keeping the rest of the format. Something like this untested code

  '<a href="http://somesite.com" target=_blank">Some text</a><br>' .

 

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

Posted
Just replace the link there now with an html link, keeping the rest of the format. Something like this untested code
  '<a href="http://somesite.com" target=_blank">Some text</a><br>' .

 

Jack

 

When I do that I get a parse error.

 

At the moment I have put the HTML links outside the PHP area, but then they are outside the "information" box. I am trying to get the links inside the box.

Posted

I found a line of code in the manual I had missed.

 

$info_box_contents[] = array('align' => 'left',

'text' => '<a href="http://www.wherever.com" target="_blank">Text for your link</a>'

);

 

 

However it puts a blank line between each line of text. Is there a solution to this? Or is there a different way to add the links?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...