• Resolved Jason Wong

    (@eljkmw)


    I’ve changed the defaulted image size from 220(w) x 154(h) to 225(w) x 290(h). Ran Regenerated Thumbnails, and cleared my web browser’s cache. Then, I reopened my website to add some products for comparison.

    Instead of seeing the product images as 225(w) x 290(h), and see that it’s taken the images’ original full size of 800(w) x 1024(h). The IMG tag within DIV class=”image-wrap” shows
    <img width="800" height="1024" ... sizes="(max-width: 800px) 100vw, 800px">

    That’s unusual. How do I resolve this issue?
    Please advise. Thank you in advance.

Viewing 1 replies (of 1 total)
  • Thread Starter Jason Wong

    (@eljkmw)

    I added a compare.css file into my active theme’s woocommerce folder, and changed the following style from ..

    table.compare-list td img {
        background: none repeat scroll 0 0 #FFFFFF;
        border: 1px solid #DADADA;
        height: auto;
        max-width: 100%;
        padding: 3px;
        margin-bottom: 20px;
        max-width: none;
    }

    to ..

    table.compare-list td img {
        background: none repeat scroll 0 0 #FFFFFF;
        border: 1px solid #DADADA;
        height: auto;
        max-width: 50%;
        padding: 3px;
        margin-bottom: 20px;
    }

    It appears to have resolved this issue. But I require some clarification, if there is any.

Viewing 1 replies (of 1 total)

The topic ‘Set image size not correct !!’ is closed to new replies.