Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   eCommerce & Atahualpa (http://forum.bytesforall.com/forumdisplay.php?f=31)
-   -   How to: remove sidebars from Woocommerce pages (http://forum.bytesforall.com/showthread.php?t=24008)

juggledad Feb 18, 2018 04:15 AM

How to: remove sidebars from Woocommerce pages
 
If you want to remove sidebars from all Woocommerce pages you can do the following:
1) go to the the folder ...wp-content/themes/Ataualpa/functions
2) edit bfa_get_options.php
3) scroll to the bottom and locate line 504 which wil be:
HTML Code:

                // $bfa_ata['h1_on_single_pages'] turn the blogtitle to h2 and the post/page title to h1 on single post pages and static "page" pages
4) just before that line add the following:
HTML Code:

// patch to remove sidebars from woocommerce pages
                $classes = get_body_class();
                if (in_array('woocommerce-page',$classes)) {
                        $left_col  = "off";
                        $left_col2  = "off";
                        $right_col  = "off";
                        $right_col2 = "off";
                        $cols = 1;
                }

5) save the file and you are done.


All times are GMT -6. The time now is 06:18 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.