🤝 CYBER MONDAY & FRIDAY SALE RETURNS - 50% OFF all plans! 🤝 Grab it Now

Sizes as dropdown

Hello GetWooPlugins

At https://svaneklinik.dk/produkt/mara-vatteret-bh-uden-boejle/ I need to make the Size option as the standard drop-down selection.
Now it is as label.
But in the setting for my Attributes I cannot longer choose to go back to “Drop-down”, I have only Select, Collor, Image, Button, Radio.
How do I solve this?

As well I need to limit the number of color-swatches to be max. 4 on the Archive pages. Some of our products have 16 colors, and som have 3, so you can imagine how ugly the archive-page will look.
How can I do this?

Best regards
Bjarni Aagaard-Nielsen

Golam Kibria

Hi Bjarni,

We have replied to your query from our live support.

If you have more questions or any confusion, please let us know.

Thank You

Golam Kibria

Hi Bjarni,

You are using Divi Shop Builder by WP Zone.

We will need the hook for their Add to Cart option.

We tried to move the swatches up with a custom snippet but it did not work.

Please ask them about the hook.

Once we have the hook, we should be able to adjust this for you.

Thank You

It is also possible for me to use WCBuilder from DiviKingdom.
Would that help?
I can try to install that now, just to try…

Golam Kibria

Hi Bjarni,

Unfortunately, we will still need the hook.

Our plugin has compatibility with the default WooCommerce hook.

Those builders customize the default hooks, most of the time.

So, to make this work we will need their hook.

Thank You

Hello again…
Here is their hook:


add_Filter( ‘woocommerce_loop_add_to_cart_args’, ‘woo_show_some_text’, 20 ); function woo_show_some_text() { echo ‘<p class=”woo”>HOOK INTO ME!</p>’; }


I hope this was enough.
Best regards

Golam Kibria

Hi Bjarni,

Unfortunately, you have shared the WooCommerce filter and it will not help us achieve the goal.

We need an action hook before the add to cart button to change the position.

Does your builder offer to add a shortcode into the custom loop?

In that case, you can try our shortcode to reposition the swatches.

Hope to hear from you soon.

Thank you

Hello again
At last we got an answer from DIVI builder.
Theur hook looks like this:

add_filter(‘woocommerce_loop_add_to_cart_link’, function($html) {
$html .= do_shortcode(‘[your_shortcode]’);


But, they ask: What do your kook look like?
Maybe we can try something the other way around.


Best regards


Golam Kibria

Hi Bjarni,

Unfortunately, this will not help with your goal.

If you couldn’t display the Swatches at all, then this could be helpful.

I am afraid, you will have to stick with the current output.

Thank You