You are here:  » Plugin Upgrade, CSS Problems


Plugin Upgrade, CSS Problems

Submitted by kimarie on Sat, 2012-01-21 16:45 in

This was working fine until I upgraded the plugin earlier today and now no matter what I can I cant get it back to the way it was.

On my search results I would like the product image to be 200px wide, but I have a "more info" button under the image which needs to be 100px. Upgrading the plugin made it go to its default sizes, I changed it to 200px and now both the product image and more info image both go to 200px when it used to be just the product image.

Here is an example {link saved}
Thanks

Submitted by support on Sat, 2012-01-21 18:12

Hi kimarie,

A CSS width will always override the width='' tag within the HTML. I see that the HTML is correct (which is presumably exactly what you had before, as upgrading will not overwrite your template contents) where the product image and more info have their own widths.

However, in the plugin CSS file resources/pto.css your version online currently contains - starting at line 62:

.pto_search img {
  width:200px;
}

If you replace this with just:

.pto_search img {
}

...then the images should revert to the size as specified in the HTML...

Hope this helps!

Cheers,
David.
--
PriceTapestry.com

Submitted by kimarie on Sat, 2012-01-28 14:29

Fab, thank you