Adding an ICON to a skin

drhiii

Joined: 2003-04-27
Posts: 397
Posted: Mon, 2004-06-28 19:40

Am not gifted and talented at PHP hence am struggling with what would be a simple thing for a knowledgable person on this...

I have the Jenado shopping cart working in stand alone mode under gallery. It has three header (and footer) files. In the three header files, I'd like to add a "home" icom that returns me to the main web site.

Have been mucking my way through the PHP and have an ICON successfully appearing in these three files, but I can't get it to align right next to the "View Cart" icon. Am trying to get it to sit next to the upper right icon.

Work in progress site is www.santuario.com/modules/gallery

There is the top level site, the thumb pages, and the sized. The first page does not have a View Cart icon, but the second and third pages do. Am just trying to get this "home" icon to go in the upper right hand side on hte first page, then next to the View Cart in the second and third pages.

Ayway point me to the code I am missing to align it right?

tx for any help, drhiii

 
drhiii

Joined: 2003-04-27
Posts: 397
Posted: Tue, 2004-06-29 04:18

Suggest where to go to find help on this?

tx, drhiii

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 26097
Posted: Tue, 2004-06-29 04:34

drhiii,
look at your source and you will see that your home image and link are outside a <td> tag.
YOu have

</td>
<a href="http://www.santuario.com">
<img src="http://www.santuario.com/modules/gallery/cart/images/default/home.gif" border="0">
<td align="right">
<a href="http://www.santuario.com/modules/gallery/cart/cart.php?action=edit&continue=%2Fmodules%2Fgallery%2F">
<img src="http://www.santuario.com/modules/gallery/cart/images/default/view.gif" border="0">
</a>

and should be

</td><td align="right"><a href="http://www.santuario.com">
<img src="http://www.santuario.com/modules/gallery/cart/images/default/home.gif" border="0">
<a href="http://www.santuario.com/modules/gallery/cart/cart.php?action=edit&continue=%2Fmodules%2Fgallery%2F">
<img src="http://www.santuario.com/modules/gallery/cart/images/default/view.gif" border="0">
</a>

All you have to do is move the <td align="right"> in front of your home link and image.

Dave

 
drhiii

Joined: 2003-04-27
Posts: 397
Posted: Tue, 2004-06-29 18:52

Hello Floridadave,

Thank you for this response. I've studied your pointer and I see now the error. Not being PHP savvy, this is foreign to me. But I understand enough to seew what you are recommending. Will give it a go.

I appreciate your response to this as well. Is how this stuff can grow, by helping newbies as myself.

regards, drhiii

floridave wrote:
drhiii,
look at your source and you will see that your home image and link are outside a <td> tag.
YOu have

</td>
<a href="http://www.santuario.com">
<img src="http://www.santuario.com/modules/gallery/cart/images/default/home.gif" border="0">
<td align="right">
<a href="http://www.santuario.com/modules/gallery/cart/cart.php?action=edit&continue=%2Fmodules%2Fgallery%2F">
<img src="http://www.santuario.com/modules/gallery/cart/images/default/view.gif" border="0">
</a>

and should be

</td><td align="right"><a href="http://www.santuario.com">
<img src="http://www.santuario.com/modules/gallery/cart/images/default/home.gif" border="0">
<a href="http://www.santuario.com/modules/gallery/cart/cart.php?action=edit&continue=%2Fmodules%2Fgallery%2F">
<img src="http://www.santuario.com/modules/gallery/cart/images/default/view.gif" border="0">
</a>

All you have to do is move the <td align="right"> in front of your home link and image.

Dave