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 » Sidebars & Widgets »

Using ATA Custom Field to turn off sidebars

Prev Previous Post   Next Post Next
Old Jun 17, 2015, 01:10 PM
33 posts · Jun 2009
Using ATA Custom Field to turn off sidebars

Y'all --

I know this bit of code:

if ($bfa_ata['left_col_pages_exclude'] != "") {
$pages_exlude_left = explode(",", str_replace(" ", "", $bfa_ata['left_col_pages_exclude']));
if ( isset($bfa_ata['leftcol_on']['page']) AND !in_array($current_page_id, $pages_exlude_left) ) {
$cols++; $left_col = "on";
} else {
if ( isset($bfa_ata['leftcol_on']['page']) ) {
$cols++; $left_col = "on";

Controls whether the left sidebar is displayed or not. I can reverse this, of course, but I'd actually like to be able to do something a little different -- I'd like to set it up so the presence of an ATA custom class or variable attached to the page controls whether or not the sidebars are shown. I use this theme on a college site with 100 pages already, and now that I'm moving the entire catalog online, I'm bound to be adding a few more. Listing pages individually to add or remove the sidebars from is getting really difficult, to be honest. A variable, or the ability to use a category (I've tried this and it doesn't work), would be really nice.



Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
Displaying a custom field? emanuel1969 Montezuma Theme 4 Jun 28, 2013 12:03 PM
Show custom field in kicker - only IF field value exists jaxon Center area post/pages 13 Feb 6, 2013 01:11 PM
Unable to turn off sidebars harty Sidebars & Widgets 1 Nov 17, 2011 03:25 AM
Custom field image with custom field link mbastos Atahualpa 3 Wordpress theme 1 Jul 1, 2010 08:17 AM
How to turn of the form/text field shadow? Fux Atahualpa 3 Wordpress theme 2 Apr 27, 2009 08:06 PM

All times are GMT -6. The time now is 11:38 AM.

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