Home New Guten Forums WoodMart support forum Customize the attribute select button

Customize the attribute select button

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #526290

    emp.strutzki
    Participant

    Could you provide me with some custom css code or some way to make this widget show 3 on top and 3 on the bottom? and remove the “X Clear” option

    Attachments:
    You must be logged in to view attached files.
    #526382

    Hung Pham
    Keymaster

    Hi emp.strutzki,

    Thanks for reaching to us.

    1. Swatches.

    Try to add the following Custom CSS code to Theme Settings > Custom CSS > CSS for desktop

    .single-product .wd-swatches-product.wd-shape-rounded {
        display: flex;
        flex-direction: row;
    }
    
    .single-product [class*="wd-swatches"].wd-shape-rounded .wd-swatch {
        flex: 0 0 31%;
    }

    2. Remove button

    If you remove that button, there is no way to reset selected swatches. You can use to add the following Custom CSS to Theme Settings > Custom CSS > Global custom CSS

    .single-product .wd-reset-var {
        display: none;
    }

    Regards,

    #526615

    emp.strutzki
    Participant

    Thank you very much, that’s exactly what I needed, can you provide me with a css so that the mobile and tablet look the same as the desktop? 3 size options online and 3 more options below

    #526700

    Hung Pham
    Keymaster

    Hi emp.strutzki,

    Please remove previous code.

    Try to add the following Custom CSS code to Theme Settings > Custom CSS > Global Custom CSS

    .single-product .wd-swatches-product.wd-shape-rounded {
        display: flex;
        flex-direction: row;
    }

    Try to add the following Custom CSS code to Theme Settings > Custom CSS > CSS for desktop

    .single-product [class*="wd-swatches"].wd-shape-rounded .wd-swatch {
        flex: 0 0 31%;
    }

    Try to add the following Custom CSS code to Theme Settings > Custom CSS > CSS for mobile

    .single-product [class*="wd-swatches"].wd-shape-rounded .wd-swatch {
        flex: 0 0 30%;
    }

    Regards,

    #526837

    emp.strutzki
    Participant

    It worked perfectly, is there a way to make the images in the first selection aligned with the size of the second selection with css too?

    Attachments:
    You must be logged in to view attached files.
    #527065

    emp.strutzki
    Participant

    Can you help me with this too please?

    #527070

    Hung Pham
    Keymaster

    Hi emp.strutzki,

    Try to add the following Custom CSS code to Theme Settings > Custom CSS > CSS for desktop

    .single-product [class*="wd-swatches"].wd-size-xlarge {
        --wd-swatch-size: 97px;
    }

    Try to add the following Custom CSS code to Theme Settings > Custom CSS > CSS for mobile

    @media (max-width: 465px){
    .single-product [class*="wd-swatches"].wd-size-xlarge {
        --wd-swatch-size: 80px;
    }
    }

    If you have a quick minute we always appreciate a 5-star rating on our theme!

    https://themeforest.net/item/woodmart-woocommerce-wordpress-theme/reviews/20264492

    Your feedback is the motivation to improve our work and services.

    Regards,

    #527150

    emp.strutzki
    Participant

    On the desktop it looked good, on mobile on some screens it breaks the line, there are 3 images on the top line and one on the bottom, is there any way to always keep the 4 on a single line and always aligned with the one below?

    #527376

    Hung Pham
    Keymaster

    Hi emp.strutzki,

    Please check again https://prnt.sc/aWoWir1A5l5c Or you can decrease font-size value in mobile section.

    Also, please remove this code

    @media (max-width: 465px){
    .single-product [class*="wd-swatches"].wd-size-xlarge {
        --wd-swatch-size: 80px;
    }
    }

    And use below one for mobile section

    .single-product [class*="wd-swatches"].wd-size-xlarge {
        --wd-swatch-size: 80px;
    }

    Regards,

    #527399

    emp.strutzki
    Participant

    thank you very much

    #527435

    Hung Pham
    Keymaster

    Hi emp.strutzki,

    Glad to hear your issue has been resolved. Keep us in mind for future questions and concerns, we’re always here to help!

    If you have a quick minute we always appreciate a 5-star rating on our theme!

    https://themeforest.net/item/woodmart-woocommerce-wordpress-theme/reviews/20264492

    Your feedback is the motivation to improve our work and services.

    Regards,

Viewing 11 posts - 1 through 11 (of 11 total)

The topic ‘Customize the attribute select button’ is closed to new replies.