[Resolved] Woocommerce product name/price aligment

Home Forums Support [Resolved] Woocommerce product name/price aligment

Home Forums Support Woocommerce product name/price aligment

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1140657
    Marin

    Hi,

    could you please help me with issue regarding keeping all product names and prices in the same line?

    Picture to clear out my issue: https://ibb.co/yQrbjYR

    Thanks

    #1140788
    David
    Staff
    Customer Support

    Hi there

    try adding this CSS:

    .woocommerce ul.products li.product .woocommerce-LoopProduct-link {
        display: flex;
        flex-direction: column;
        height: 100%;
        margin-bottom: unset;
    }
    
    .woocommerce ul.products li.product .woocommerce-loop-product__title {
        margin-top: auto !important;
    }
    #1141005
    Marin

    It does not work unfortunatelly πŸ™

    Problem could be the fact that product images are not all the same. What do you think?

    I have used this code in functions.php to have product photos contained into 300x200px

    add_filter('woocommerce_get_image_size_thumbnail','add_thumbnail_size',1,10);
    function add_thumbnail_size($size){
    
        $size['width'] = 300;
        $size['height'] = 200;
        $size['crop']   = 0; //0 - full, 1 - crop
        return $size;
    }
    #1141212
    David
    Staff
    Customer Support

    Where did you add the CSS? I cannot see it on the site. Can you add it back in and let me know where.

    #1141217
    Marin

    Ah, ok…now I add it back…

    #1141257
    David
    Staff
    Customer Support

    Made a slight change to the CSS here

    #1141271
    Marin

    Thanks for your fantastic support!!
    It is getting better definitely πŸ™‚ we have one thing to fix and we’re done here…hope you could help here too:

    https://ibb.co/jDGTRNj

    Can we center product images? uncropped…

    #1141277
    David
    Staff
    Customer Support

    Add this CSS:

    .woocommerce ul.products li.product .wc-product-image {
        margin: auto;
    }
    #1141279
    Marin

    Solved!! πŸ™‚

    THANKS!!

    #1141280
    David
    Staff
    Customer Support

    You’re welcome

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.