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 | |
/** | |
* Change Gravatar size for reviews | |
*/ | |
function CUSTOM_woocommerce_review_display_gravatar( $comment ) { | |
echo get_avatar( $comment, apply_filters( 'woocommerce_review_gravatar_size', '145' ), '' ); | |
} | |
?> |
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 | |
/** | |
* Change product description display on single product | |
*/ | |
function belise_woocommerce_template_single_excerpt() { | |
global $post; | |
if ( ! $post->post_excerpt ) { | |
return; | |
} |
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 rating on single product in WooCommerce | |
remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_rating', 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 page content before loop items on Shop main in WooCommerce | |
remove_action( 'woocommerce_archive_description', 'woocommerce_product_archive_description', 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 | |
/** | |
* Pagination | |
*/ | |
function CUSTOM_woocommerce_pagination() { | |
return the_posts_pagination( array( | |
'prev_text' => __( 'Prev page', 'custom' ), | |
'next_text' => __( 'Next page', 'custom' ), | |
) ); | |
} |
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 | |
// 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 | |
// 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 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 sidebar from all shop pages | |
remove_action( 'woocommerce_sidebar','woocommerce_get_sidebar', 10 ); | |
?> |