Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

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

How to: remove sidebars from Woocommerce pages

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


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 03:05 PM.

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