Shop slider alignment

edited June 2023 in Other

Hello,

Is it possible to align the products in the shop slider? Just like with the elements. You can choose stretched under positioning at wrap position. I would also like to apply something like this for the shop slider so that it looks a bit nicer.

Now it looks like this

And i like it to be more like this


Thanks

Regards

Roy

Comments

  • Hi,

    Please always attach a link to your website so we can check it out. If the page is offline(localhost), then our help will be limited. You will have to contact us when the page is online. Also, please make sure that the page is not under maintenance before you provide us with the link.


    Thanks

  • edited June 2023

    Sorry i forgot

    site

    Thanks

  • Please try the following CSS code:

    .shop_slider .slick-slide .image_wrapper{
       min-height: 336px;
       background-color: #fff;
    }
    

    Put it in Betheme -> Theme options -> Custom CSS & JS -> CSS.


    Best regards

  • That works, but it makes it all very big on the page.

    I need to get the images the same height.

  • Images on your website have different size ratios.

    They can be stretched with a CSS code, but they will look like this:

    Is it what you want to achieve?


    Best regards

  • Hello,

    Kind of. But i want the bigger thumbnails to get smaller so it doesn't look stretched.

    Thanks

  • Please try the following CSS code instead of the previous one I sent:

    .shop_slider .slick-slide .image_wrapper img{
       max-height: 300px;
       min-height: 300px;
    }
    

    Thanks

  • That still gives a streched look to the images.

  • Last, what I can suggest is the following code:

    .shop_slider .slick-slide .image_wrapper,
    .shop_slider .slick-slide .image_wrapper img{
      max-height: 250px;
      min-height: 250px; 
      background-color: #fff;
      width: auto;
    }
    

    Anyway, I highly recommend uploading images with the same size ratio.


    Best regards

  • Anyway, I highly recommend uploading images with the same size ratio.

    I know, but this is loaded from a wholesalers website with an api. I therefore do not determine which images will appear with the products

    I'm going to try this and otherwise I'll just leave it for what it is.

    Thanks for the help.

Sign In or Register to comment.
This website uses cookies

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.

Cookies are small text files that can be used by websites to make a user's experience more efficient.

The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies we need your permission. This means that cookies which are categorized as necessary, are processed based on GDPR Art. 6 (1) (f). All other cookies, meaning those from the categories preferences and marketing, are processed based on GDPR Art. 6 (1) (a) GDPR.

This site uses different types of cookies. Some cookies are placed by third party services that appear on our pages.

You can at any time change or withdraw your consent from the Cookie Declaration on our website.

Learn more about who we are, how you can contact us and how we process personal data in our Privacy Policy.

Please state your consent ID and date when you contact us regarding your consent.