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

Move variations swatches below product title in archives.

Hello everyone

I have a developer’s question. I would like to show the variation swatches after the product title in the archives page.

Could you please tell me which hook function should I un hook and re-hook in order to make this happen?

 

Kind Regards

Archimidis.

Hakik Zaman

Hi Archimidis,

Thanks for reaching us.

Could you send us the latest version of the theme that you are using on your site? We’ll try to investigate your issue by installing your theme on our local setup.

You can upload the theme file in Dropbox or Google Drive and send the download link here directly.

Looking forward to hearing from you soon.

Thank you

Hello the theme is the “Hello Elementor” free theme from the WordPress repo and I call the product archives from the Elementor Pro element.

So I think I will need just a hook to move the swatches below the title in product archives.

Hakik Zaman

Hello Archimidis,

Thanks for sharing the theme name. Swatch hook for archive page is- wvs_pro_archive_variation_template

You can try the below code-

function wvs_swatch_reposition_support() {
add_action( 'woocommerce_after_shop_loop_item_title', 'wvs_pro_archive_variation_template', 9 );
remove_action( 'woocommerce_after_shop_loop_item', 'wvs_pro_archive_variation_template', 7 );
}add_action( 'init', 'wvs_swatch_reposition_support' );

Thanks