12/11/2023 0 Comments Woocommerce image resize pluginSometimes, you’ll need to adjust how the graphic displays to make it more attractive or optimize it for web performance.įortunately, it’s easy to edit your images in WordPress. But finding the perfect image is only half the battle. So I think that this problem very common in multivendor sites is half solved.Adding visuals to your WordPress website is a great way to make your pages more engaging. On the other hand, I use code in functions.php to avoid loading images that are less than 900px wide and less than 1100 high. If the image doesn’t comply, the plugin adds bands top and bottom or left and right with a pre-configured color to fit and not show images of many different sizes. I solved it temporarily with a plugin (smart image resize) with which I can indicate to crop the main image in both width and length measures (in my case, 1080×1350 – aspect ratio 4:5). Maybe in the future it could be more configurable by taking the data from the chosen ratio in the woocommerce thumbnails (5:4, 3:2, 1:1, etc etc). it always shows the larger main image (2:3). If I choose to use square images (1:1) when I upload them to the site, the viewport does not look square. (it would be nice to be able to select the aspect ratio of the viewport). Where does woodmart take the aspect ratio of the viewport? It is normal that different sellers do not look for the ideal image and upload some of different dimensions. The problem appears when the site is multivendor. All perfect as long as only one person selects the images with the ideal proportions to display. Woocommerce does not crop the main image, right? The image is displayed in the proportions it was uploaded. Example: “+2 ”ġ,3 – I don’t understand this. I think you should add a number indicating that there are more hidden images to see. The catalog option of woodmart, hides also the chat button (from dokan) and the label with which woodmart shows the amount of stock.Ĥ – I decided to deactivate relevanssi because several times it stopped showing products.Ģ – the code you sent me to show more thumbnails, adds a new image below breaking the design. deactivate relevanssi and everything works fine. many times it does NOT show products when activated. The relevanssi plugin has major problems with dokan. With the product photo, so that they are shown more without the need to doģ – is there any way to get woocoomerce or woodmart to “crop” the main product image to a preset size? Any plugin or code?Ĥ – this is for you to pass on to the developers. I suppose that woodmart must set the values of the viewport by means ofĢ – How do I reduce the size of the thumbnail gallery that is displayed next to the product photo? I did a stage of the site and tried another demo but the result is the same.ġ – How do I have control over the size of the viewport?Ĥ40px wide and 550px high is the size that allows to see well the photo without being too big. I send you a screenshot (smallest option marked with 1 and the next one with 2) to understand what I mean. There is a very big jump between the smallest image option and the one that follows it. I think the problem is that the theme does not handle the 4:5 aspect ratio well. Of course I read the documentation and I know the options of the theme regarding the configuration of images in the single product. This topic was modified 1 year ago by Thank you for your quick response. If I make a backup of the current theme settings and then reset the theme and then load the backup over it…I get back the colors, fonts, css, theme options, etc etc… as I have it now? or part of the settings are lost? Sometimes it looks fine, and sometimes it shows the main picture much bigger. It also happens to me on the single product page. Surprisingly, when i go to take a screenshot to send you, the images on the right side (which were displayed at different heights) look perfect. so they do not upload very small images.Ĭan it be that I upload this last demo OVER the previous demo? The php script in functions, only prevents that the images uploaded by sellers, can not be less than: 800px wide and 1000px high. The plugin Robin Image optimizer, which compresses images, and if the image exceeds the width of 1200px it crops it proportionally to 1200px. The size of the single product image in woocommerce is 1080. The aspect ratio of the thumbnails in woocommerce is 5:4. The width limit is set to 1200px and the height limit is set to 1500px. I set up 2 plugins and a php script in the child theme (functions). The same thing happens on the main photo of the single product page. Shouldn’t they be cropped correctly by woocommerce? I am having some problems with the display of images when uploading images of different sizes.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |