Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Customizing the Look of Your Shop / Templates, Stylesheets, Page Layout / Remove image side boxes from product pages

Remove image side boxes from product pages

31 Jan 2014, 6:57 PM
#1
ricangem avatar

ricangem

Zen Follower

Join Date:
Dec 2010
Posts:
138
Plugin Contributions:
0

Post #1 by ricangem

Hello, I been trying to figure out how to remove the large images that are shown on the bottom left and right of the product pages on my website. I would only like them to show on my main page. For example, the one that says "save over 20% off organic bamboo bedding".

The template is customized and I have tried contacting the company that made the template but they do not want to help. It looks as though they added the boxes as images instead of banners, although the large boxes are labeled as "az_banner_3". If anyone could help, it would be very much appreciated. Thank you. My website is b e d r o o m d u v e t s p o t . c o m
31 Jan 2014, 7:13 PM
#2
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Post #2 by twitchtoo

It looks like they have that setup as a banner here:
Admin -> Tools -> Banner Manager
az banners 3
az banners 4

Switch them off?

It's possible they have been added in as CSS classes, I would need to see the code to determine for sure.

Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian

31 Jan 2014, 7:33 PM
#3
ricangem avatar

ricangem

Zen Follower

Join Date:
Dec 2010
Posts:
138
Plugin Contributions:
0

Post #3 by ricangem

Thank you twitchoo for responding so quickly. No, unfortunately I checked the Admin -> Tools -> Banner Manager and the banners aren't listed there. I am just seeing the zencart banners.

Which codes are you referring to? I would be more than happy to show you.

31 Jan 2014, 7:37 PM
#4
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Post #4 by twitchtoo

I'll need ftp access to see your templates folder you can PM me address, username, password.

Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian

31 Jan 2014, 7:41 PM
#5
ricangem avatar

ricangem

Zen Follower

Join Date:
Dec 2010
Posts:
138
Plugin Contributions:
0

Post #5 by ricangem

I am so sorry but I don't feel comfortable giving away my ftp info. But I would be happy to look through any folders/files and get the info you need. =)

31 Jan 2014, 7:52 PM
#6
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Post #6 by twitchtoo

That's fine, it's much faster for me...

You need to find the following:

<div class="az_right_bar_bottom"> <a href="http://bedroomduvetspot.com/index.php?main_page=index&cPath=9_36"> <div id="az_banner4"></div>

Which could be in includes/templates/YOUR_TEMPLATE/css/stylesheet.css

or in includes/templates/YOUR_TEMPLATE/sideboxes/EXISTING_BANNER_FILE.php or YOUR_CUSTOM_BANNER_FILE.php

or in includes/templates/YOUR_TEMPLATE/templates/EXISTING_BANNER_FILE.php or YOUR_CUSTOM_BANNER_FILE.php

and I would also check includes/languages/english/YOUR_TEMPLATE/extra_definitions/YOUR_CUSTOM_BANNER_FILE.php

and includes/modules/sideboxes/YOUR_TEMPLATE/YOUR_CUSTOM_BANNER_FILE.php

Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian

31 Jan 2014, 8:08 PM
#7
ricangem avatar

ricangem

Zen Follower

Join Date:
Dec 2010
Posts:
138
Plugin Contributions:
0

Post #7 by ricangem

Thank you for your understanding.

I remember seeing the code you mentioned in the template.main_php file and I was right. Is this it? =)

<div class="az_right_bar_bottom"> <a href="http://bedroomduvetspot.com/index.php?main_page=index&cPath=9_36"><div id="az_banner4"></div></a> <div class="clear"></div>
31 Jan 2014, 8:17 PM
#8
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Post #8 by twitchtoo

Yes the CSS class 'az_right_bar_bottom' calls the image, the 'a href' is the page link to that image.

Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian

31 Jan 2014, 8:26 PM
#9
ricangem avatar

ricangem

Zen Follower

Join Date:
Dec 2010
Posts:
138
Plugin Contributions:
0

Post #9 by ricangem

That great news. Would I need to add a code somewhere? =)

31 Jan 2014, 8:37 PM
#10
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Post #10 by twitchtoo

You want to show it only on the index page and not on the product pages?

What about other shopping pages?

Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian

31 Jan 2014, 8:44 PM
#11
ricangem avatar

ricangem

Zen Follower

Join Date:
Dec 2010
Posts:
138
Plugin Contributions:
0

Post #11 by ricangem

Yes, I would like the banner to show only on the main page and removed from the other pages....if possible. :smile:

31 Jan 2014, 10:39 PM
#12
gilby avatar

gilby

Totally Zenned

Join Date:
Aug 2005
Location:
Vic, Oz
Posts:
1,816
Plugin Contributions:
0

Post #12 by gilby

ricangem:

Yes, I would like the banner to show only on the main page and removed from the other pages....if possible. :smile:
Wrap it in ..

if ($this_is_home_page) {
... your code here ...
}
31 Jan 2014, 11:29 PM
#13
ricangem avatar

ricangem

Zen Follower

Join Date:
Dec 2010
Posts:
138
Plugin Contributions:
0

Post #13 by ricangem

Hi Gilby, I tried what you said and the code you gave me shows with the image on my website. Did I do something wrong? Sorry I am not familiar with php. Here's what I did:

if ($this_is_home_page) {
<div class="az_right_bar_bottom">
<a href="http://bedroomduvetspot.com/index.php?main_page=index&cPath=9_36"><div id="az_banner4"></div></a>
<div class="clear"></div>

            </div>    }
1 Feb 2014, 12:42 AM
#14
gilby avatar

gilby

Totally Zenned

Join Date:
Aug 2005
Location:
Vic, Oz
Posts:
1,816
Plugin Contributions:
0

Post #14 by gilby

ricangem:

Hi Gilby, I tried what you said and the code you gave me shows with the image on my website. Did I do something wrong? Sorry I am not familiar with php. Here's what I did:

if ($this_is_home_page) {
<div class="az_right_bar_bottom">
<a href="http://bedroomduvetspot.com/index.php?main_page=index&cPath=9_36"><div id="az_banner4"></div></a>
<div class="clear"></div>

            </div>    }Ahhh try this..
<?php if ($this_is_home_page) { ?>
   <div class="az_right_bar_bottom">
   <a  href="http://bedroomduvetspot.com/index.php?main_page=index&cPath=9_36">
   <div  id="az_banner4"></div></a>
   <div class="clear"></div>
   </div>
 <?php    } ?>
1 Feb 2014, 12:56 AM
#15
ricangem avatar

ricangem

Zen Follower

Join Date:
Dec 2010
Posts:
138
Plugin Contributions:
0

Post #15 by ricangem

gilby:

Ahhh try this..

<?php if ($this_is_home_page) { ?> <div class="az_right_bar_bottom"> <a href="http://bedroomduvetspot.com/index.php?main_page=index&cPath=9_36"> <div id="az_banner4"></div></a> <div class="clear"></div> </div> <?php } ?> ```

Bingo! Thank you so much! :hug: