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

    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?

    View post on imgur.com

    (move class inner_product_header above class thumbnail_container)

    Thanks

    Chris

    • This topic was modified 5 years, 9 months ago by Chris_85.
    #1071413

    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

    #1071838

    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

    #1073133

    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

    #1074448

    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

    #1075292

    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

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.