Black Friday Sale! Get up to $40 off GP Premium!Learn more

[Resolved] Woocommerce layout

Home Forums Support Woocommerce layout

  • This topic has 5 replies, 3 voices, and was last updated 3 years ago by Leo.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #430502
    luigi

    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

    #430720
    Leo
    Staff
    Customer Support

    Hi there,

    You should be able to find both options in the WooCommerce layout panel in the customizer: https://docs.generatepress.com/article/woocommerce-overview/

    #430874
    Chris

    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

    #430888
    Leo
    Staff
    Customer Support

    Hi Chris,

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

    #431294
    luigi

    I got it, thank you
    all is fine now

    But why function doesn’t work?

    #431634
    Leo
    Staff
    Customer Support

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

    Maybe it was overwriting by the customizer options.

    Glad you got it working!

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.