Product archive > Product styles > Tiled – Reorder action buttons
-
I’m looking into changing the order of the action buttons as per the attached image. Mobile view included. Many thanks!
ps. how do you call those buttons anyway? 🙃
Attachments:
You must be
logged in to view attached files.
Hello,
Sorry but there is no option in theme Settings available for that.
It requires customizations and this is beyond our limitations and support policy.
Regards.
Xtemos Studios.
Understood. Can you at least point me in the direction of which file to edit?
Found a solution!
For those interested in flipping the buttons around the following file needs editing
woodmart>woocommerce>content-product-tiled.php
I use a child theme so just duplicated the file in woodmart-child/woocomerce and changed lines 22-28
FROM
<div class="wd-buttons wd-pos-r-t<?php echo woodmart_get_old_classes( ' woodmart-buttons' ); ?>">
<?php woodmart_enqueue_js_script( 'btns-tooltip' ); ?>
<div class="wd-add-btn wd-action-btn wd-style-icon wd-add-cart-icon<?php echo woodmart_get_old_classes( ' wd-add-cart-btn woodmart-add-btn' ); ?>"><?php do_action( 'woocommerce_after_shop_loop_item' ); ?></div>
<?php woodmart_quick_view_btn( get_the_ID() ); ?>
<?php woodmart_add_to_compare_loop_btn(); ?>
<?php do_action( 'woodmart_product_action_buttons' ); ?>
</div>
TO
<div class="wd-buttons wd-pos-r-t<?php echo woodmart_get_old_classes( ' woodmart-buttons' ); ?>">
<?php woodmart_enqueue_js_script( 'btns-tooltip' ); ?>
<?php woodmart_add_to_compare_loop_btn(); ?>
<?php woodmart_quick_view_btn( get_the_ID() ); ?>
<?php do_action( 'woodmart_product_action_buttons' ); ?>
<div class="wd-add-btn wd-action-btn wd-style-icon wd-add-cart-icon<?php echo woodmart_get_old_classes( ' wd-add-cart-btn woodmart-add-btn' ); ?>"><?php do_action( 'woocommerce_after_shop_loop_item' ); ?></div>
</div>
RESULTS
Attachments:
You must be
logged in to view attached files.
Hello,
We are Glad that you found a Solution yourself. Thanks for sharing the solution here. It will be useful for other customers trying to achieve the same.
Let us know if there’s anything else we can do for you! You can always reach us at any time. We are always here to help you.
Have a wonderful day.
Topic Closed.
Best Regards.
The topic ‘Product archive > Product styles > Tiled – Reorder action buttons’ is closed to new replies.