Home Forums WoodMart support forum Swatch customization on specific product category

Swatch customization on specific product category

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #504816

    sami-6411
    Participant

    Hello,

    Currently I can only find three different options for the swatches, circle, rounded square and square.

    Is it possible to somehow make swatches appear in a different kind of look on a specific category page?

    #504928

    Hello,

    I am afraid there is no option to configure different shapes of swatches for different products.

    If you have any questions please feel free to contact us.

    Best Regards

    #504988

    sami-6411
    Participant

    Hello,

    Is there someone I can contact to help me modify the code so I can achieve what I want?

    I’ve seen couple posts when I was searching about swatches where people got help with similar requests, tiny bit bamboozling that it’s not possible anymore.

    #505099

    Bogdan Donovan
    Keymaster

    Hi,

    There is no problem with customizing attribute swatch design if it can be achieved with custom CSS code only. What was meant in the previous answer is that it is impossible to universally bind a custom attribute design in all places, since WooCommerce does not provide the name of the attribute in the form of a class to which it would be possible to bind styles simultaneously shop page, single page and in other places such as the product items, quick view and others.

    As a partial solution, you can restyle one of the existing designs (for example fourth design https://prnt.sc/6psRd84vWpVn) by using the custom code provided below and selecting the following fourth design for attributes that you want to show in the design described by you in first message.

    .wd-bg-style-4 .wd-swatch :is(img, picture) {
    	object-fit: contain;
    }
    
    .wd-bg-style-4 .wd-swatch {
    	 width: 80px;
    }
    
    .wd-bg-style-4 .wd-swatch.wd-bg .wd-swatch-bg:is(:not([style^="background-color"])):before {
    	border: none !important;
    }

    If you use provided custom CSS code, your “design-4” attributes will look like this (https://prnt.sc/UCgeQrhXQ-re). You can also adjust width to your own value.

    Kind Regards

    #505115

    sami-6411
    Participant

    Hello,

    This is exactly what I was looking, thank you so much for the help! Sorry if I created confusion with the first question, I can make the attributes category specific via the widgets menu I believe.

    #505286

    Hello,

    If you have any questions please feel free to contact us.

    Best Regards

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