[Support request] Woocommerce addon

Home Forums Support Woocommerce addon

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #320928
    Joe

    Hi,

    I noticed a Woocommerce addon at the bottom of the list that I may have missed. Since I am setting up Woocommerce, I activated it. Is there any documentation? If you could point me to it or describe the main functions of the Woocommerce add on, I would appreciate it very much. Thank you.

    Joe

    GeneratePress 1.3.46
    GP Premium 1.3
    #321059
    Tom
    Lead Developer
    Lead Developer

    Hi Joe,

    The WC add-on was released yesterday – still working on documentation (will be up soon).

    For now, you’ll find the options in:

    Colors > WooCommerce
    Typography > WooCommerce
    Layout > WooCommerce

    Most of them are fairly obvious once you enabled/disable the options.

    Let me know if you need more info 🙂

    #321068
    Joe

    Hi Tom,

    The Woocommerce add on give a lot of fine control.

    Working with it, I naturally had to get into blog settings and i have a question about that. I have the blog set up for collumn – content – collumn and keep the Woocommerce product pages at content-collumn. When I run a search, my results come out in the collumn – content – collumn format. I would like the results to come out in content – collumn format. Is there any way to set that?

    Joe

    #321262
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    Regular searches, or product specific searches?

    By default, the search template will inherit your blog sidebar layout.

    You can adjust it with a filter: https://docs.generatepress.com/article/sidebar-layout/#using-a-function

    #321357
    Joe

    Hi Tom,

    I want to eliminate the left sidebar on regular and product searches. It is showing up on both.

    Will this work?

    add_filter( ‘generate_sidebar_layout’,’tu_custom_search_sidebar_layout’ ); function tu_custom_search_sidebar_layout( $layout ) { // If we are viewing search results, set the sidebar if ( is_search() ) return ‘no-left-sidebar’; // Or else, set the regular layout return $layout; }

    Can i use Simple CSS to insert the filter or do I need to use another plugin to modify a php file?

    Joe

    #321500
    Tom
    Lead Developer
    Lead Developer

    This should do it:

    add_filter( 'generate_sidebar_layout','tu_custom_search_sidebar_layout' );
    function tu_custom_search_sidebar_layout( $layout )
    {
     	// If we are viewing search results, set the sidebar
     	if ( is_search() )
     	 	return 'no-sidebar';
    
     	// Or else, set the regular layout
     	return $layout;
    
     }

    Adding PHP: https://docs.generatepress.com/article/adding-php/

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