Forums / General Questions / Larger image popup not resizing - image is tall and skinny

Larger image popup not resizing - image is tall and skinny

Started by laurelsstitchery on 30 Jul 2014, 9:17 PM · Views: 1,641

Results 1 to 5 of 5
30 Jul 2014, 9:17 PM
#1
laurelsstitchery avatar

laurelsstitchery

Zen Follower

Join Date:
Jun 2010
Posts:
145
Plugin Contributions:
0

Larger image popup not resizing - image is tall and skinny

ZC version 1.5.3 - fresh install via FTP and zc_install
I've installed the Responsive Classic template (http://www.zen-cart.com/downloads.php?do=file&id=1816)

The popup resizes just fine with the regular green template, but not with the Responsive Classic template selected, so I know it's something with the template. I'll be darned if I can figure it out though. The popup has the image at the correct height, but the width is always 116 pixels. I've done a search using the Developers Tool Kit and can't find a reference to 116px anywhere. I'll probably figure it out as soon as I post this, but if not, could someone give me a hint as to where to look to find the problem? Thanks! :)

2 Aug 2014, 11:54 PM
#2
laurelsstitchery avatar

laurelsstitchery

Zen Follower

Join Date:
Jun 2010
Posts:
145
Plugin Contributions:
0

Re: Larger image popup not resizing - image is tall and skinny

laurelsstitchery:

ZC version 1.5.3 - fresh install via FTP and zc_install
I've installed the Responsive Classic template (http://www.zen-cart.com/downloads.php?do=file&id=1816)

The popup resizes just fine with the regular green template, but not with the Responsive Classic template selected, so I know it's something with the template. I'll be darned if I can figure it out though. The popup has the image at the correct height, but the width is always 116 pixels. I've done a search using the Developers Tool Kit and can't find a reference to 116px anywhere. I'll probably figure it out as soon as I post this, but if not, could someone give me a hint as to where to look to find the problem? Thanks! :)

VICTORY IS MINE!!! I removed the following from catalog->includes->templates->responsive_classic->css->stylesheet.css:

img {
    max-width: 100%;
}
3 Aug 2014, 12:04 PM
#3
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Larger image popup not resizing - image is tall and skinny

That may have fixed the issue currently, but I wonder if in comparison of css files in your responsive directory to your template_default directory, is there an extra css file loaded in the template_default? And if there is an extra file there, was it part of the original install of ZC or added by something else?

Asking because it seems like the "fixed" code section almost seems important to the responsive aspect, although perhaps that was a fix posted in the forum for the template, I don't know. I also don't know how the fix was discovered, trial and error/educated guess or documented elsewhere.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

3 Aug 2014, 6:31 PM
#4
laurelsstitchery avatar

laurelsstitchery

Zen Follower

Join Date:
Jun 2010
Posts:
145
Plugin Contributions:
0

Re: Larger image popup not resizing - image is tall and skinny

mc12345678:

That may have fixed the issue currently, but I wonder if in comparison of css files in your responsive directory to your template_default directory, is there an extra css file loaded in the template_default? And if there is an extra file there, was it part of the original install of ZC or added by something else?

Asking because it seems like the "fixed" code section almost seems important to the responsive aspect, although perhaps that was a fix posted in the forum for the template, I don't know. I also don't know how the fix was discovered, trial and error/educated guess or documented elsewhere.

There are three css files in responsive_classic/css/ and three css files in template_default/css/. I opened the "larger image" window on my old site and compared that code to the "larger image" window on my soon-to-be site and the only difference was that bit of code. I had sent a couple of emails to the person who made the template, through their website and a PM through the ZC forum with no response. I've spent a lot of time on this one annoying issue, and the larger image popup is important so that my customers can see a better version of the item they're interested in buying. So, it was trial and error and educated guess and comparison between installations and lots of complaining to my husband who was tired of hearing about it. :) I've had a bunch of customers test out the new site and haven't heard any other complaints, so I'm going to call it good and go on with my life unless I hear something different later. :)

13 Oct 2014, 4:06 PM
#5
noahmarket avatar

noahmarket

New Zenner

Join Date:
Oct 2014
Location:
North Carolina
Posts:
8
Plugin Contributions:
1

Re: Larger image popup not resizing - image is tall and skinny

I found this in my active template to fix it but not sure about if your on phone or tablet ill look at that later
/includes/templates/my_template/css/stylesheet.css
Look for this line what i added is in bold red

.centeredContent, TH, #cartEmptyText, #cartBoxGVButton, #cartBoxEmpty, #cartBoxVoucherBalance, #navCatTabsWrapper, #navEZPageNextPrev, #bannerOne, #bannerTwo,  #bannerThree,  #bannerFour,  #bannerFive,  #bannerSix, #siteinfoCredits, #siteinfoStatus, #siteinfoIP, .center, .cartRemoveItemDisplay, .cartQuantityUpdate, .cartQuantity, .cartTotalsDisplay, #cartBoxGVBalance, .leftBoxHeading, .centerBoxHeading,.rightBoxHeading, .productListing-data, .accountQuantityDisplay, .ratingRow, LABEL#textAreaReviews, #productMainImage, #reviewsInfoDefaultProductImage, #productReviewsDefaultProductImage, #reviewWriteMainImage, .centerBoxContents, .specialsListBoxContents, .categoryListBoxContents, .additionalImages, .centerBoxContentsSpecials, .centerBoxContentsAlsoPurch, .centerBoxContentsFeatured, .gvBal, .attribImg {text-align:center;[B]max-width:650px[/B]}