Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Define Mainpage - Adding a link to a Picture


[200]

Recommended Posts

Hi,

 

I am trying to add a link to a picture on my front page using define mainpage. I have tried everything possible to do it but haven't been able to figure it out. I am sure it is really easy but I cannot think of any other way.

 

Here is the code to display the pic,

 

<td width=25% valign="top" align="center">
<?
$somebox_title = "Autogage";
$somebox_info = "<center>" . tep_image(DIR_WS_IMAGES . '001.jpg') . '<BR><BR><BR></center>'; 

 $info_box_contents = array();
 $info_box_contents[] = array('align' => 'left',
                              'text'  => $somebox_title );
 new infoBoxHeading($info_box_contents, true, true);

 $info_box_contents = array();
 $info_box_contents[] = array('align' => 'left',
                              'text'  => $somebox_info);
 new infoBox($info_box_contents);
?>
</td>

 

As I mentioned, I am wanting to link the pic to a part of my site...

 

Can anyone help?

THanks

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...