wordpress woocommerce image size - container is stretching the image

南楼画角 提交于 2019-12-25 04:09:28

问题


First of all, i will apologise for my badly written english, never really went to school. So please be nice.

I have some problems with the website im building in wordpress.

I'm are using "the7" theme.

i have set the size, of the images in the product settings, and regenerated the images, with the plugin that there is recommended. And it it's working fine in the product page. But not in my custom "webshop" page. The container, where the images is stored, is simply to big. and i cant find any way to fix it.

The URL http://www.imobile.dk/webshop/

i would like the image to be 150x150. and it is, but it's is stretched. on my computer (617x617) original is 150x150.

dose anyone has any idea, how to fix this?

i think the theme it self, is overwriting the default settings.

i really need you're guys help.

Thanks.


回答1:


You can try the following: In your wp-admin go to "appearence" -> "Editor" and then put this in your style.css file:

.woo-buttons-on-img {
    max-width: 150px;
}


来源:https://stackoverflow.com/questions/41272634/wordpress-woocommerce-image-size-container-is-stretching-the-image

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!