• Udinra

    (@udinra)


    First of all thanks for great theme.It looks good and have valid Schema markup.Also loads fast.

    I am using it on my website.It is working fine with WooCommerce (I have added woocommerce.php file) with below contents.

    get_header(); ?>
    
    	<div id="primary" class="site-content">
    		<div id="content" role="main">
    			<?php woocommerce_content(); ?>
    		</div>
    	</div>
    
    <?php get_footer(); ?>

    It is working fine for product pages.But on product category pages and shop pages the sidebar gets displayed.So layout breaks.The sidebar is displaying as I am unable to choose layout for it.Also if layout is not layout 1c then theme loads primary sidebar.

    Could you please help me out? Here is link to the page for your reference

    https://udinra.com/product-category/ibps-book

Viewing 4 replies - 1 through 4 (of 4 total)
  • Theme Author Sami Keijonen

    (@samikeijonen)

    Do you have link how Woocommerce works with themes? I haven’t added support for Woo but I think it might be possible via child theme.

    Theme Author Sami Keijonen

    (@samikeijonen)

    This is untested but try this in your child theme functions.php.

    /**
     * Function for deciding which pages should have a one-column layout.
     *
     * @since  1.0.0
     */
    function kuorinka_child_one_column() {
    
    	if ( function_exists( 'woocommerce_list_pages' ) && ( is_shop() || is_product_category() || is_product_tag() ) ) {
    		add_filter( 'theme_mod_theme_layout', 'kuorinka_theme_layout_one_column' );
    	}
    
    }
    add_action( 'template_redirect', 'kuorinka_child_one_column' );
    Thread Starter Udinra

    (@udinra)

    Man you are Genius and very helpful..

    This worked fine..Thanks again for the theme and solution..It is better than pro themes out there

    Theme Author Sami Keijonen

    (@samikeijonen)

    Your welcome! I’m glad you like the theme.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Using 1 column layout (no sidebar) WooCommerce product category pages’ is closed to new replies.