Jump to content

changing image size in cube cart 5


Recommended Posts

I have tried all advice Ive found and still cant get my product image thumbnails larger. There seems to be so much wasted space. My website is www.summerscloset.com. Any advice would be great. The simpler the better, since I am only so skilled at making any major changes. Thanks!

 

This is what I have on 492, 501

height is 205, margins 10, 5, 5

 

width on 501 is 124 margin right 3

other lines are like you suggested.

Link to comment
Share on other sites

Welcome summercloset! Glad to see you made it to the forums.

 

There will be two changes to make: the skin's config.xml and the skin's common.css.

 

At the bottom of config.xml, you will see <image> tags. The one that has reference="thumbnail" is set to have maximum=138 pixel width or height, whichever is the longest side. Change that to 118. Do the same for "small".

 

In common.css, near line 264, find the rule for div.latest_product. Change the width to 124px; height to 205px; and margin to 5px 2px 35px 2px;

 

You can also adjust div.category_product near line 492 (for height) and div.category_product a.image near line 501 (for width).

 

Then visit your admin screen Maintenance, Rebuild tab, and clear the cache.

Link to comment
Share on other sites

Hate to bother you again, but I tried changing line 271, and a bunch of others I though might be it, but I cannot find which one needs to be changed to adjust the box around the picture to fit, now that the picture is larger in the latest products. .

Also, in the categories I made the images larger, but now the lines are not lining up. Which line is associated with these? Or is this the margins? Thanks so much

Link to comment
Share on other sites

The file /skins/mican/styles/common.css, at line 271, there is this:

div.latest_product p.image {
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    height: 138px;
    padding: 8px;
    text-align: center;
}

Change the height as instructed earlier.

 

Please be aware that web browsers will "cache" (keep a local copy) of images, javascript and css files. As such, you need to learn how to have the browser you are using to "force" a complete page re-load, including reloading all images, javascript and css files.

 

Each browser is different on how that is accomplished. On Firefox, holding down the shift key while clicking the circle-arrow at the far right edge of the web address entry field will force a reload for Firefox.

 

Also, CubeCart keeps a copy of pages for itself as well. In the admin Store Settings, Advanced tab, in the Performance group, disable caching while you are playing around with the skin code.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...