code for static home page widgets
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> |
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> |
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.
|
use the 'New Widdget area' code and add it to ato->Style & edit CENTER COLUMN->Content ABOVE the LOOP
|
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> |
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'); } ?> |
Quote:
|
All times are GMT -6. The time now is 07:43 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.