Remove woocommerce shop page from sitemap

To remove the woocommerce base shop page from any sitemap add the following code to your function.php file

//remove shop base from sitemap
add_filter( 'wpseo_sitemap_post_type_archive_link', 'my_wpseo_cpt_archive_link', 10, 2);

function my_wpseo_cpt_archive_link( $link, $post_type ) {

// Disable product/post archives in the sitemaps
if ( $post_type === 'product' )
return false;

return $link;

Replace Woocommerce shop page with home page

I have been building woocommerce sites for many years and it has always been annoying to have that main shop page… So here is how to do it the clean way.

Add the following to your function.php file :

/* Redirect WooCommerce Shop URL
add_filter( 'woocommerce_return_to_shop_redirect', 'st_woocommerce_shop_url' );
function st_woocommerce_shop_url(){
return site_url();

Add Wpbakery (visual composer) editor to Woocommerce category description box

It has always been a pain not to have versatile editor to edit category descriptions in Woocommerce. Some theme don’t even output that description. I use a great plugin I found on Codecanyon for that. The developer is realy serious and offers good support when needed. It also adds so many other possibilities as it integrates ACF custom fields into Wpbakery :