Home Forums Basel support forum Sidebars

Sidebars

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1531

    beautifulpixels
    Participant

    Hello,

    How can the product tag page have no sidebar but the main shop have a sidebar?

    Regards

    #1539

    Artem Temos
    Keymaster

    Hello there,

    Thank you for creating with us!

    There is no such option in our theme, but you can try to customize our theme functions to achieve this. Try to add this code to your functions.php file in the child theme

    
    function basel_get_sidebar_class() {
    	if( is_product_tag() ) {
    		return 'col-sm-0';
    	}
    
    	return BASEL_Registry()->layout->get_sidebar_class();
    }
    
    function basel_get_content_class() {
    	if( is_product_tag() ) {
    		return 'col-sm-12';
    	}
    
    	return BASEL_Registry()->layout->get_content_class();
    }

    Regards

    #1546

    beautifulpixels
    Participant

    That is great, can we also add in this code adjust the products columns ?

    #1549

    Artem Temos
    Keymaster

    Yes, you can try this one for columns trick

    add_action('wp', 'basel_tag_columns_filter', 100);
    
    function basel_tag_columns_filter() {
    	if( is_product_tag() ) {
    		global $basel_options;
    		$basel_options['products_columns'] = 3; // your columns number
    	}
    }
    
    #1583

    beautifulpixels
    Participant

    Thank you very much!

    #1588

    Artem Temos
    Keymaster

    You are welcome!

    #1589

    Artem Temos
    Keymaster

    Write us when you have any difficulties or issues with our theme.

    And we would be glad if you will rate our theme with 5 stars on themeforest in case you are satisfied with our theme and customer service http://themeforest.net/downloads

    Thank you in advance 🙂

Viewing 7 posts - 1 through 7 (of 7 total)

The topic ‘Sidebars’ is closed to new replies.