fbpx
Want To Add Extra Images Per Product Variation For Free? Download Now

Swatched above button on archive page

Hi there,

I am using the Flatsome theme. What should I do to have swatches above the Add To Cart?

You can see the issue here: https://staging2.lellahome.com/categorie-produit/matiere-et-fournitures/matieres-premieres-matiere-et-fournitures/sels/

Best,

Nawfel

Hakik Zaman

Hi Nawfel,

Thanks for reaching out to us.

I have added the following snippet (GWP Support #128718) using the Code Snippets Plugin:

add_action('woo_variation_swatches_pro_archive_page_loaded', function($wvs_pro){
remove_action('woocommerce_init', array( $wvs_pro, 'enable_swatches' ), 1);
add_action('flatsome_product_box_after', array( $wvs_pro, 'after_shop_loop_item' ), 49);
}, 10, 1);

Please check now and don’t forget to clear your caches before checking.

Thank You