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 »

code for static home page widgets


  #1  
Old Oct 11, 2010, 11:27 AM
sober's Avatar
sober
 
121 posts · Oct 2010
Hello

I am using the static home page option and how do I add a widget above the title that shows up ONLY when the HOME PAGE is called.It will be a page that will be the home page and not the latest post lists. I do have widgets on the same place in pages which I do not want to show up on home page. The code for the page widget is
Code:
<div id="page-top"><?php if (is_page()) { ?><?php bfa_widget_area('name=page-top'); ?><?php } ?></div>
Please let me know the solution. Thanks in advance
  #2  
Old Oct 11, 2010, 02:44 PM
sober's Avatar
sober
 
121 posts · Oct 2010
I've tried the following code but doesn't work

Code:
<div id="page-top"><?php if (!is_front_page() || is_page()) { ?><?php bfa_widget_area('name=page-top'); ?><?php } ?></div>
<div id="page-top"><?php if ( is_home() ||  is_front_page()) { ?><?php bfa_widget_area('name=start-top'); ?><?php } ?></div>
  #3  
Old Oct 11, 2010, 02:49 PM
sober's Avatar
sober
 
121 posts · Oct 2010
I have in the past used the theme "Thematic" from themeshaper.com which had this feature builtin, so I know its possible. Any help will be appreciated.
  #4  
Old Oct 11, 2010, 04:56 PM
juggledad's Avatar
juggledad
 
23,672 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
use the 'New Widdget area' code and add it to ato->Style & edit CENTER COLUMN->Content ABOVE the LOOP
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Oct 11, 2010, 05:07 PM
sober's Avatar
sober
 
121 posts · Oct 2010
It is when I put these there and could not make it work, that I posted as a question . Do you think that the code is correct ?. Can you give me the correct conditional tag ? I tried this one also but no success
Code:
<div id="page-top"><?php if ( is_home() ||  is_front_page() || is_page()) { ?><?php bfa_widget_area('name=start-top'); ?><?php } ?></div>

Last edited by sober; Oct 11, 2010 at 05:11 PM.
  #6  
Old Oct 11, 2010, 06:04 PM
juggledad's Avatar
juggledad
 
23,672 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
all you need is this instead of escaping in and out of PHP
HTML Code:
<?php if ( is_home() ||  is_front_page()) { bfa_widget_area('name=start-top'); } ?>
Then go view the home page then go back to the widget age and you should see the widget area
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #7  
Old Jan 28, 2011, 11:36 AM
talbin
 
19 posts · Feb 2010
Quote:
Originally Posted by juggledad
all you need is this instead of escaping in and out of PHP
HTML Code:
<?php if ( is_home() ||  is_front_page()) { bfa_widget_area('name=start-top'); } ?>
Then go view the home page then go back to the widget age and you should see the widget area
JD - I don't know if that helped anyone else, but it sure helped me! I've been looking for the answer to adding custom widgets to the bottom of my static home page for two days - and here's the answer! I just inserted this into ATO-->Style & Edit Center Column --> Content Below the Loop and it worked like a charm. Thank you!

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] If Home Page is static where does blog go? WineButler Center area post/pages 2 Jun 22, 2010 10:05 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
Center Column Static Page just shows code??? forestwander Atahualpa 3 Wordpress theme 1 Sep 1, 2009 07:21 PM
Sidebars are still on static home page, won't go away. krystyna Sidebars & Widgets 1 May 25, 2009 06:01 PM
How to create a static home page? tomlucas Page & Category Menu Bars 2 Apr 21, 2009 12:47 AM


All times are GMT -6. The time now is 05:47 PM.


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