[Resolved] Columns in shop page

Home Forums Support [Resolved] Columns in shop page

Home Forums Support Columns in shop page

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #126297
    stardrive

    Dear Tom,

    Please, how can I do the following:
    1. Change the no of columns displayed in the woocommerce shop overview page?

    Regards,

    Stardrive

    #126359
    Tom
    Lead Developer
    Lead Developer

    Do you want no columns displayed, or do you want sidebars on it?

    You can use this function:

    add_filter( 'generate_sidebar_layout','generate_custom_woocommerce_sidebar_layout' );
    function generate_custom_woocommerce_sidebar_layout( $layout )
    {
     	// If we are on a woocommerce page, set the sidebar
     	if ( is_woocommerce() )
     	 	return 'both-left';
    
     	// Or else, set the regular layout
     	return $layout;
    
     }

    These are the options:

    Sidebar / Content: left-sidebar
    Content / Sidebar: right-sidebar
    Content (no sidebars): no-sidebar
    Sidebar / Content / Sidebar: both-sidebars
    Sidebar / Sidebar / Content: both-left
    Content / Sidebar / Sidebar: both-right

    Adding PHP: https://generatepress.com/knowledgebase/adding-php-functions/

    Let me know if you need more info ๐Ÿ™‚

    #126436
    stardrive

    Dear Tom,

    I was referring to the number of product thumbnail columns in a woocommerce product archive page. I did not mean the number of sidebars.
    I am sorry for not communicating my request properly

    Regards,

    Stardrive

    #126438
    Tom
    Lead Developer
    Lead Developer
    #126444
    stardrive

    Thank you so much, Tom, for your kind and lighting reponse

    I am OK with this now

    Best Regards,

    Stardrive

    #126446
    Tom
    Lead Developer
    Lead Developer

    Glad I could help ๐Ÿ™‚

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