Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Putting an image inside an infobox


rmr

Recommended Posts

Hello.

 

I would like to put an image inside an infobox that I created. How can I do it?

 

Check out opcards.com/catalog - I am trying to put an image inside the 'guarantee' infobox that I just created (right side).

 

Thank you in advance!

Link to comment
Share on other sites

Hello.

 

I would like to put an image inside an infobox that I created. How can I do it?

 

Check out opcards.com/catalog - I am trying to put an image inside the 'guarantee' infobox that I just created (right side).

 

Thank you in advance!

You can simply use HTML tags within the text array in the includes/boxes/YOURBOX.php file.

 

For example:

$info_box_contents[] = array('text' => '<img src="YOURIMAGE.gif"></center>');

 

The same way you could also make an image linkable by simple putting the image in between <a href></a> HTML tags.

 

I don't know whether it's the neatest thing to do, but it works for me.

:thumbsup:

RojanUK

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...