Hi,
i have a question. Is it possible to customize the structure of the woocommerce product slider? for example i want to change the order of html element. The Headline should stand above the product image?
(move class inner_product_header above class thumbnail_container)
Thanks
Chris
Hey Chris_85,
Could you please give us a link to your website, we need more context to be able to help you.
Best regards,
Victoria
Hi Victoria,
you can find the element in your demo: https://kriesi.at/themes/enfold-shop/
maybe there is a possibility to change the order with jquery?
best regards
Hi Chris_85,
Well, it can be done by editing the file and making changes there
enfold/config-templatebuilder/avia-shortcodes/postslider/postslider.php
or doing it by the JavaScript when the page is loaded, but this can look glitchy on slower connection speeds.
Best regards,
Victoria
Hi Victoria,
in this file i cant find the html for changing the order of the elements. Can you plz show me where i can change the order of the html as i showed in the first post via screenshot?
Best regards
Chris
Hi Chris,
Can you try adding this code at the bottom of your child theme’s functions.php:
remove_action( 'woocommerce_before_shop_loop_item_title', 'avia_woocommerce_thumbnail', 10);
remove_action( 'woocommerce_before_shop_loop_item_title', 'avia_shop_overview_extra_header_div', 20);
add_action( 'woocommerce_before_shop_loop_item_title', 'avia_woocommerce_thumbnail', 20);
add_action( 'woocommerce_before_shop_loop_item_title', 'avia_shop_overview_extra_header_div', 10);
Best regards,
Nikko