Hey guys, I just noticed I forgot to tell you or maybe you already know this but,
When changing your theme always make sure you use your CHILD theme. This is so you keep your changes when upgrading your theme in the future.
WordPress has a detailed explanation on how to do this. When putting changes in your function.php do not copy the file to your child. Just make a new function.php file in your child theme and put the code in there.
This his how my child function.php looks
<?php
/**
* Flatsome child functions and definitions
*
* @package flatsome
*/
remove_action( 'woocommerce_before_shop_loop', 'woocommerce_catalog_ordering', 30 );
remove_action( 'woocommerce_before_shop_loop', 'woocommerce_result_count', 20 );
if ( is_home() ) {
remove_action( 'woocommerce_before_main_content', 'woocommerce_breadcrumb', 20, 0);
}
remove_action( 'woocommerce_after_single_product_summary',
'woocommerce_output_related_products', 20 );
add_filter( 'wc_product_enable_dimensions_display', '__return_false' );
add_filter('woocommerce_get_availability', 'availability_filter_func');
?>
As you can see it only contains the code I added. The rest of the file get taken from the original theme file. Maybe you already know this but it’s also for future people seeing this ! If I explained it poorly or have any questions do ask.
Happy coding.