How can I display product color variants as images instead of a dropdown list?
This topic has 9 replies, 3 voices, and was last updated 9 months, 1 weeks ago ago by Andrew Mitchell
How can I display product color variants as images instead of a dropdown list?
Hello,
Thank you for reaching out to us.
You can find detailed information about Variation Swatches in our documentation here:
https://www.8theme.com/documentation/xstore/xstore-features/variation-swatches-3/
If you have any further questions or need additional assistance, please feel free to ask. We are happy to help!
Best Regards,
8Theme’s Team
Please, I would like to display the color variants as images instead of a dropdown list. Thanks a lot!
Hello,
Thank you for reaching out to us.
WooCommerce provides two types of product attributes:
– Global Attributes: These attributes are created under WP-Admin > Products > Attributes. They are available for all products across the website and can be used for filtering.
– Local Attributes: These attributes are created when editing an individual product. They are only visible on the product page and cannot be used for filtering.
The XStore theme only supports global attributes for variation swatches. Ensure that your product variations are set up using global attributes – https://prnt.sc/0ozDvEaeUDFR
Here is a video example – https://www.youtube.com/embed/LgzC4iK-j6A
Best regards,
8Theme’s Team
the variants image is too small . how can i increase with and height . Thanks a lot.
Hello,
Thank you for reaching out to us.
To adjust the width and height of the variant images, custom CSS code can be used, for example:
.single-product ul.st-swatch-size-large li.type-image {
width: 60px;
height: 60px;
}
Best regards,
8Theme’s Team
this answer was effective on desktop however the variants still too small on mobile phone. any suggestion about that. thanks a lot for your time.
Hello,
We appreciate your prompt response.
We’ve changed your custom CSS code from https://prnt.sc/YTuK4HTA1ygU to https://prnt.sc/yZTb44cvKzyu
Kindly review the changes and let us know if any further adjustments are needed.
Best regards,
8Theme’s Team
Dear nabil,
As we continue our mission to exceed expectations, your insights become increasingly valuable. Could we, with all due respect, request your thoughtful feedback by giving our theme a deserved 5-star rating on ThemeForest?
Click here to share your valuable perspective: https://themeforest.net/downloads
Your time and trust are highly appreciated!
Best Regards,
The 8Theme Team
The issue related to '‘product color variants as images instead of a dropdown’' has been successfully resolved, and the topic is now closed for further responses