Done !
| Server IP : 46.105.57.169 / Your IP : 216.73.216.67 Web Server : Apache System : Linux webm002.cluster120.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 : verseaumee ( 152031) PHP Version : 8.5.7 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/verseaumee/geniouskin/wp-content/themes/ixlab/ |
Upload File : |
<?php
/**
* The template for displaying WooCommerce
*/
defined( 'ABSPATH' ) or die();
add_filter( 'ixlab_body_class', 'ixlab_woocommerce_body_class' );
add_filter( 'ixlab_sidebar_id', 'ixlab_woocommerce_sidebar' );
add_filter( 'ixlab_sidebar_position', 'ixlab_woocommerce_sidebar_position' );
add_action( 'woocommerce_before_main_content', 'ixlab_product_category', 100 );
remove_action( 'woocommerce_before_main_content', 'woocommerce_breadcrumb', 20 );
add_action( 'woocommerce_archive_description', 'woocommerce_breadcrumb', 15 );
add_action( 'woocommerce_before_single_product', 'woocommerce_breadcrumb', 15 );
//remove_action('woocommerce_before_main_content', 'woocommerce_breadcrumb', 20, 0);
remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10);
remove_action( 'woocommerce_after_main_content', 'woocommerce_output_content_wrapper_end', 10);
?>
<?php get_header() ?>
<?php if ( ixlab_option( 'shop__archive__category' ) === 'on' ): ?>
<div class="hidden-categories"></div>
<?php endif ?>
<?php do_action( 'woocommerce_before_main_content' );?>
<div class="main-products">
<?php
function ixlab_product_category( $args = array() ) {
$woocommerce_category_id = get_queried_object_id();
$args = array(
'parent' => $woocommerce_category_id
);
$terms = get_terms( 'product_cat', $args );
if ( $terms ) {
echo '<ul class="woocommerce-categories">';
foreach ( $terms as $term ) {
echo '<li class="woocommerce-product-category-page">';
echo '<a href="' . esc_url( get_term_link( $term ) ) . '" class="' . $term->slug . '">';
echo '<span class="title">' . $term->name . '</span>';
woocommerce_subcategory_thumbnail( $term );
echo '</a>';
echo '</li>';
}
echo '</ul>';
}
}
?>
<?php if ( is_shop() || is_product_category() ): ?>
<?php if ( is_active_sidebar( 'woocommerce-content-top' ) ): ?>
<div class="woocommerce-content-top">
<a href="javascript:;" data-target="off-canvas-top" class="off-canvas-toggle">
<span><?php esc_html_e( 'Filter', 'ixlab' ) ?></span>
</a>
<div id="off-canvas-top" class="off-canvas off-canvas-top woocommerce-content-top-wrap">
<?php dynamic_sidebar( 'woocommerce-content-top' ) ?>
</div>
</div>
<?php endif ?>
<?php endif ?>
<?php woocommerce_content() ?>
</div>
<?php get_footer() ?>