Skip to content

Instantly share code, notes, and snippets.

@nickburne
nickburne / Re-order the product tabs
Created April 28, 2014 13:18
Re-order the product tabs
add_filter( 'woocommerce_product_tabs', 'woo_reorder_tabs', 98 );
function woo_reorder_tabs( $tabs ) {
$tabs['reviews']['priority'] = 5; // Reviews first
$tabs['description']['priority'] = 10; // Description second
$tabs['additional_information']['priority'] = 15; // Additional information third
return $tabs;
@nickburne
nickburne / Remove the orderby dropdown for products
Created April 28, 2014 13:10
Remove the orderby dropdown for products
remove_action( 'woocommerce_before_shop_loop', 'woocommerce_catalog_ordering', 30 );
@nickburne
nickburne / Remove product tabs
Created April 24, 2014 11:36
Remove product tabs
add_filter( 'woocommerce_product_tabs', 'woo_remove_product_tabs', 98 );
function woo_remove_product_tabs( $tabs ) {
unset( $tabs['description'] ); // Remove the description tab
unset( $tabs['reviews'] ); // Remove the reviews tab
unset( $tabs['additional_information'] ); // Remove the additional information tab
@nickburne
nickburne / gist:11251252
Created April 24, 2014 11:33
remove the orderby dropdown for products
remove_action( 'woocommerce_before_shop_loop', 'woocommerce_catalog_ordering', 30 );
#nav-search .icon-search {
position: absolute;
right: 9px;
}
#nav-search {
margin-right: 9px;
top: 10px;
padding-top:5px;