Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » eCommerce & Atahualpa »

How to: remove sidebars from Woocommerce pages


  #1  
Old Feb 18, 2018, 04:15 AM
juggledad's Avatar
juggledad
 
23,655 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Montezuma/Woocommerce - pages rendering w/out <head> or meta data. DoverTim Montezuma Theme 12 Feb 18, 2013 04:41 AM
[SOLVED] How to remove footer sidebars helpsolve Sidebars & Widgets 2 May 17, 2011 05:36 PM
Cannot remove sidebars from pages duevelocita Sidebars & Widgets 10 Jan 28, 2011 06:32 AM
Static home page, how to drop sidebars or remove widgets without changing blog pages. bestbreedmarketing Atahualpa 3 Wordpress theme 1 Feb 8, 2010 12:39 PM


All times are GMT -6. The time now is 10:09 PM.


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