Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

how to add an image with link to left/right columns


lbcampagna

Recommended Posts

in includes/column_left.php just after

require(DIR_WS_BOXES . 'information.php');

add:

echo '<a href="' . tep_href_link('YOUR_RELATIVE_URL_LINK_HERE') . '">' . tep_image('YOUR_IMAGE_NAME_HERE') . '</a>';

do mind to upload the image you wish to use to your images folder.

 

edit:

if you wish to use an url to outside of oscommerce you will need other code:

echo '<a href="YOUR_FULL_URL_LINK_HERE" target="_blank">' . tep_image('YOUR_IMAGE_NAME_HERE') . '</a>';

Link to comment
Share on other sites

  • 4 months later...
in includes/column_left.php just after
require(DIR_WS_BOXES . 'information.php');

add:

echo '<a href="' . tep_href_link('YOUR_RELATIVE_URL_LINK_HERE') . '">' . tep_image('YOUR_IMAGE_NAME_HERE') . '</a>';

do mind to upload the image you wish to use to your images folder.

 

edit:

if you wish to use an url to outside of oscommerce you will need other code:

echo '<a href="YOUR_FULL_URL_LINK_HERE" target="_blank">' . tep_image('YOUR_IMAGE_NAME_HERE') . '</a>';

 

I have a question, what if you wanted to put the image link to the URL in the footer instead?

 

Can you be use these same two lines of code (I have them in bold) as well; or how would it work??

 

I've been trying to put image links to direct URLs in my footer but not finding the correct answers to my dilemma. The closest information to help was what told me how to set up links on all of the pages. I want them on one specific page. Hope that makes sense as to my current situation.

 

Thanks in advance for any help provided!

Link to comment
Share on other sites

THANK YOU!! :thumbsup:

 

Got what I needed. This brings a question which I'm not sure about however. Can I still use <br /> to give them spaces in between one another if there is more than one image link.

 

Second question. If I wanted to put the image at the bottom of the columns, I'm guessing all I would need to do is add in an an align="bottom" to the image code correct?

 

Thanks again!!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...