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 »

[SOLVED] New widget area only on specified page?

Old Oct 28, 2009, 08:10 AM
122 posts · Jul 2009
I've created a new widget area that appears below the center content area. This works out great. I've used widget logic to make it so that my widgets display only on the the front page. This also works great. I've added css to style the new widget area to be a different color than the background on the center area. Also works great.

The problem is although the widgets do not display on the inner pages, the widget area is still there. One can tell because there is a block of the different colored background visible. So, my question is, can I, as I can with side bars, cause wp not to show the widget area on inside pages? Or maybe this is done with css?

Old Oct 28, 2009, 11:29 AM
juggledad's Avatar
23,755 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
you should be able to add a pfp IF with the new area.

Lets say you wanted a new widget area in the header, but only on page ID=21 you could use
HTML Code:
 <?php if (is_page(21)) { bfa_widget_area('name=My header widget area'); } ?>
and the area should only exist on page id=21
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
Old Oct 28, 2009, 03:37 PM
122 posts · Jul 2009
WAY cool. It worked! :-)



Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using more than one New Widget Area Suzie Sidebars & Widgets 3 Oct 17, 2009 08:02 AM
[SOLVED] Help ! Links broken in widget in new widget area mikecnwa Sidebars & Widgets 4 Sep 16, 2009 01:56 PM
WPMU - new widget area(S) ? teros Sidebars & Widgets 3 Sep 5, 2009 04:22 AM
Footer Widget Area aebrigham Sidebars & Widgets 2 Aug 11, 2009 01:26 PM
New widget area in header paulae Sidebars & Widgets 10 Jul 3, 2009 01:45 PM

All times are GMT -6. The time now is 12:00 AM.

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