Use the following CSS code:
.woocommerce-ordering {
display: none;
}
Cheers!
]]>Use:
remove_action( 'woocommerce_before_shop_loop', 'woocommerce_catalog_ordering', 10 );
Cheers!
]]>If you’re adding this snippet on to other functions included with the theme, maybe check to see if there is another function that might be overriding it.
]]>I am not sure how I can check if another function is overriding it but if I put the above code at the bottom part of my functions.php should that override it? Because I did put it at the bottom of my functions.php however it was still showing.
Thanks!
]]>I am not sure how I can check if another function is overriding it but if I put the above code at the bottom part of my functions.php should that override it?
There is no real way to override a function unless you code the other function out, or specifically state to ignore another function. It may be the Shop-isle theme has a built in function to show the method, and thus the functions are not working. You would most likely have to stick to the CSS method, however you can reach out to your theme provider to see if they have a way of forcing the function to work in the theme.
]]>/* Remove "Default Sorting" Dropdown @ WooCommerce Shop & Archive Page*/
remove_action( 'woocommerce_before_shop_loop', 'woocommerce_catalog_ordering', 10 );
/*Remove Additional Information Tab @ WooCommerce Single Product Page*/
add_filter( 'woocommerce_product_tabs', 'bbloomer_remove_product_tabs', 98 );
function bbloomer_remove_product_tabs( $tabs ) {
unset( $tabs['additional_information'] );
return $tabs;
}
/* remove you are here */
add_filter('avia_breadcrumbs_args', 'avia_remove_you_are_here_breadcrumb', 10, 1);
function avia_remove_you_are_here_breadcrumb($args){
$args['before'] = "";
return $args;
}
add_filter('avia_breadcrumbs_trail', 'avia_breadcrumbs_args_mod', 10, 2);
function avia_breadcrumbs_args_mod($trail, $args){
unset($trail[0]);
return $trail;
}
any ideas what the problem might be? I am on a developer site.
thanks for your help
Nancy
The code we sent you earlier is for the Storefront theme. Please try this one instead:
remove_action( 'woocommerce_before_shop_loop', 'woocommerce_catalog_ordering', 30 );
@einstein-green – Which theme are you using, please? ?? That will help troubleshoot.
]]>