This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Define product images size | |
*/ | |
function CUSTOM_woocommerce_image_sizes() { | |
$catalog = array( | |
'width' => '300', | |
'height' => '200', | |
'crop' => 1, | |
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Remove JetPack sharing icons | |
remove_action( 'woocommerce_share', 'jetpack_woocommerce_social_share_icons', 10 ); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Remove title | |
*/ | |
function CUSTOM_woocommerce_hide_page_title() { | |
return false; | |
} | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Add code before | |
*/ | |
function CUSTOM_woocommerce_before_main_content() { | |
?> | |
<div class="container"> | |
<div class="row"> | |
<?php | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Remove sidebar from all shop pages | |
remove_action( 'woocommerce_sidebar','woocommerce_get_sidebar', 10 ); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Remove Add to Cart button on product loops | |
remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart' ); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Remove showing results on shop loop | |
remove_action( 'woocommerce_before_shop_loop', 'woocommerce_result_count', 20 ); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Remove product rating on shop/category | |
remove_action( 'woocommerce_after_shop_loop_item_title', 'woocommerce_template_loop_rating', 5 ); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Define product loop display | |
*/ | |
function CUSTOM_woocommerce_template_loop_product_title() { | |
global $product; | |
?> | |
<div class="product-header"> | |
<h3 class="product-title"> | |
<a class="shop-item-title-link" href="<?php the_permalink(); ?>" title="<?php esc_attr( the_title() ); ?>"><?php esc_html( the_title() ); ?></a> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Pagination | |
*/ | |
function CUSTOM_woocommerce_pagination() { | |
return the_posts_pagination( array( | |
'prev_text' => __( 'Prev page', 'custom' ), | |
'next_text' => __( 'Next page', 'custom' ), | |
) ); | |
} |
OlderNewer