Site logo

Archived topic

Woocommerce layout

5 replies · Started by luigi on November 22, 2017

Viewing posts 1–6 of 6

Hi
I tried this function to eliminate the sidebar but didn't woork

add_filter( 'generate_sidebar_layout','tu_custom_woocommerce_sidebar_layout' );
function tu_custom_woocommerce_sidebar_layout( $layout )
{
// If we are on a woocommerce page, set the sidebar
if ( function_exists( 'is_woocommerce' ) && is_woocommerce() )
return 'no-sidebar';

// Or else, set the regular layout
return $layout;

}

How can I remove the right sidebar from shop and product layout?
Thank you

I am trying to figure out how to change the add to cart button on the catalog page https://anngentry.com/shop to be view product details and not just add to cart page. Where is the setting for this? I want them to be able to see the product details first before they add to cart. Thanks, Chris

Hi Chris,

You'd have to check with WooCommerce on this. GP simply styles the WooCommerce page and doesn't change the functions/options.

I got it, thank you
all is fine now

But why function doesn't work?

Not sure. I'd have to have a closer look.

Maybe it was overwriting by the customizer options.

Glad you got it working!

This archived topic is closed to new replies.