Skip to content

Commit

Permalink
* Woocommerce Grid/List Toggle: change position of html description (…
Browse files Browse the repository at this point in the history
…after title, instead of after price)
  • Loading branch information
nicomollet committed Nov 28, 2017
1 parent 90c5db2 commit 192a904
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions inc/plugins/woocommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -559,6 +559,18 @@ function stormbringer_gridlist_toggle_button_output($output, $grid_view, $list_v
}
add_filter( 'gridlist_toggle_button_output', 'stormbringer_gridlist_toggle_button_output',10, 3 );

/**
* Woocommerce Grid/List Toggle: change position of html description (after title, instead of after price)
*/
function aquatonic_wp(){
if ( is_shop() || is_product_category() || is_product_tag() || is_product_taxonomy() ) {
remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_single_excerpt', 5);
add_action( 'woocommerce_after_shop_loop_item_title', 'woocommerce_template_single_excerpt', 8);
}
}
add_action( 'wp' , 'aquatonic_wp' , 30);


/**
* WooCommerce product list item before
*/
Expand Down

0 comments on commit 192a904

Please sign in to comment.