Zen Cart Logo
Forums / General Questions / blank sidebox mod - won't let me add an image

blank sidebox mod - won't let me add an image

Locked

Views: 663

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
1 Jul 2010, 4:25 PM
#1
zubenubi avatar

zubenubi

New Zenner

Join Date:
Jan 2010
Location:
Ireland
Posts:
88
Plugin Contributions:
0

blank sidebox mod - won't let me add an image

I have the blank sidebox mod installed and I'm trying to add an image to the left of each link in a list of links.

in includes>templates>my_template>sideboxes>tpl_blank_sidebox I have replaced lines 19&20 with:
$content .= '<div id="CustCateS"><img src="../images/pointer1.gif" /><a href="jackets-c-37">Jackets</a></div>';

the link shows up ok but the pointer image doesn't. I have of course created a pointer image and placed it in includes>templates>my_template>images>pointer1.gif but it doesn't show up.

I know elsewhere on my page I have employed the same code and it works fine there, so whats going wrong here!?

I've spent the last hour staring at this but can't spot what I've done wrong.

any thoughts?

thanks

1 Jul 2010, 4:37 PM
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: blank sidebox mod - won't let me add an image

Since the pointer is a list type of element, you could leave it out of the PHP/HTML code and just add to your stylesheet```
#blanksidebox a {
display: list-item;
list-style: disc inside url(../images/pointer1.gif);
}

Make sure that you change blanksidebox to match your sidebox's exact name if different.
1 Jul 2010, 5:07 PM
#3
zubenubi avatar

zubenubi

New Zenner

Join Date:
Jan 2010
Location:
Ireland
Posts:
88
Plugin Contributions:
0

Re: blank sidebox mod - won't let me add an image

you are a true gentleman, I didn't even know such a thing was possible.