Done !
| Server IP : 51.91.236.255 / Your IP : 216.73.217.126 Web Server : Apache System : Linux webm003.cluster129.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : chloega ( 433239) PHP Version : 8.4.22 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/chloega/www/wp-content/themes/bravada/includes/ |
Upload File : |
<?php
/*
* Woocommerce compatibility / overrides
*
* @package Bravada
*/
/* Override content product - products content on archive pages
https://github.com/woocommerce/woocommerce/blob/release/3.5/templates/content-product.php
*/
/*
* Move the Add to Cart button inside the thumbnail,
* and add a div for the Add to card and View cart buttons
*/
remove_action('woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 10);
add_action('woocommerce_before_shop_loop_item_title', 'bravada_woocommerce_before_buttons', 15);
add_action('woocommerce_before_shop_loop_item_title', 'woocommerce_template_loop_add_to_cart', 16);
add_action('woocommerce_before_shop_loop_item_title', 'bravada_woocommerce_after_buttons', 17);
function bravada_woocommerce_before_buttons() {
echo "<div class='woocommerce-buttons-container'>";
}
function bravada_woocommerce_after_buttons() {
echo "</div><!--.woocommerce-buttons-container-->";
}
/*
* Add a container to the thumbnail
*/
add_action('woocommerce_before_shop_loop_item_title', 'bravada_woocommerce_before_thumbnail', 5);
add_action('woocommerce_before_shop_loop_item_title', 'bravada_woocommerce_after_thumbnail', 20);
function bravada_woocommerce_before_thumbnail() {
echo "<div class='woocommerce-thumbnail-container'>";
}
function bravada_woocommerce_after_thumbnail() {
echo "</div><!--.woocommerce-thumbnail-container-->";
}
// FIN