Zen Cart Logo

Popup images

Locked

Views: 1,632

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
19 Aug 2006, 4:33 PM
#1
danallkins avatar

danallkins

Zen Follower

Join Date:
Aug 2006
Posts:
135
Plugin Contributions:
0

Popup images

Hi Guys,

Is it possible to change the background of the popp windows when viewing larger product images etc??

Thanks

Dan

20 Aug 2006, 12:52 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Popup images

There should not be a visible background per se as what is visible sahould be only the image....you can use a graphic editor and change the background color though.

If you are seeing something other than this post your url so that we can see what you are seeing

20 Aug 2006, 2:14 PM
#3
superprg avatar

superprg

Totally Zenned

Join Date:
Feb 2006
Location:
Chicago
Posts:
1,349
Plugin Contributions:
0

Re: Popup images

DanAllkins:

Hi Guys,

Is it possible to change the background of the popp windows when viewing larger product images etc??

Thanks

Dan
Yes, it is possible

Open the file:
\includes\templates\template_default\popup_image\tpl_main_page.php

and replace the line

<body id="popupImage" class="centeredContent1" onload="resize();">

with this

<body id="popupImage_new" class="centeredContent" onload="resize();">

open the file

includes\templates\classic\css\stylesheet_new.css
(or whichever css yuo are using in your site)

After line

#popupShippingEstimator, #popupSearchHelp, #popupAdditionalImage, #popupImage, #popupCVVHelp, #popupCouponHelp, #popupAtrribsQuantityPricesHelp, #infoShoppingCart {
	background-color: #ffffff;
	}

add this:

#popupImage_new
	{
	background-color: #ff0000;
	}

Let us know how it works

PS: not very sure if this is the correct way from the upgrade point of view

20 Aug 2006, 2:27 PM
#4
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,621
Plugin Contributions:
0

Re: Popup images

Superprg-

There is no need to change the CSS class or ID There is already one there all you have to do is change the Stylesheet.

20 Aug 2006, 2:53 PM
#5
superprg avatar

superprg

Totally Zenned

Join Date:
Feb 2006
Location:
Chicago
Posts:
1,349
Plugin Contributions:
0

Re: Popup images

Kim:

Superprg-

There is no need to change the CSS class or ID There is already one there all you have to do is change the Stylesheet.

Sorry but care to explain how this can be done the way you are explaining
Thanks

22 Aug 2006, 5:43 AM
#6
gjh42 avatar

gjh42

Black Belt

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

Re: Popup images

All you need to do is move the #popupImage in the stylesheet to its own line and define it there. This works fine and will continue to work through upgrades without maintenance.