Skip to content

Instantly share code, notes, and snippets.

@ibndawood
Created June 24, 2018 11:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ibndawood/c2680e09264f46e91e7aa58c84232df4 to your computer and use it in GitHub Desktop.
Save ibndawood/c2680e09264f46e91e7aa58c84232df4 to your computer and use it in GitHub Desktop.
Electro v2 - Show rating in grid view
add_action( 'init', 'ec_child_add_rating' );
function ec_child_add_rating() {
remove_action( 'woocommerce_after_shop_loop_item_title', 'electro_template_loop_rating', 70 );
add_action( 'woocommerce_after_shop_loop_item_title', 'electro_template_loop_rating', 140 );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment