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

[SOLVED] Widgetising a ""Page" Page" - I just simply cannot work it out


  #1  
Old Jul 17, 2009, 05:23 AM
Olivier
 
9 posts · Jul 2009
Hi everyone,

Wondering if anyone can help me solve this, as after spending literaly hours trying to understand and implement all the advice I am reading, I still cannot figure out what I should be doing... So, here we go:

I would like to add widgets to a ""Page" Page". I do read a lot of blogs, which I would like to share with my visitors; but because of the quantity, I would like to avoid using the sidebars as the display mechanism. Instead, I would like to display the list of blogs, with their respective headlines, which I can get through their respective RSS feeds.

I read the thread: http://forum.bytesforall.com/showthread.php?t=330 which I started to follow.

Went to my functions.php and added:

register_sidebar(array(
'name'=>'RSS Feed Page -> Widgets',
'before_widget' => '<div id="%1$s" class="widget %2$s">',
'after_widget' => '</div></div>',
'before_title' => '<div class="widget-title"><h3>',
'after_title' => '</h3></div><div class="widget-content">',
));


before the following line:

}
// Load functions


Then went into my WP widget admin section, and great the new widget area was there.

Next the thread says, I need to add "wherever you want to have that widget area in the template":

<?php if ( is_front_page() ) { ?>
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(5) ) : endif; ?>
<?php } ?>


to enable the following ""page" page": http://www.dombey.com/blog/blogs-i-read/. The conditional being that I only want those widgets displayed on that page... and this is where I am stuck, not even knowing if I am following the right steps...

1 - I cannot find any place in the theme admin area to work on the ""Page" Pages". All I found was dealing with "Post" pages, under the "Post & Pages" area; except the "Edit POST/PAGE INFO ITEMS" area, which refers to ""Page" Pages" but do not seems to allow PHP code inserts.
2 - I cannot find any PHP files in the directory related to ""Page" Page"
3 - So, I have no idea where to add the conditional code, since I cannot find those page type admin area and files
4 - Since I don't know where to go and what to do next, I am not even able to give the right name to the page in the conditional statement if ( is_WHAT_PAGE NAME() )

Anyway, if you have a minute, look at the page I gave above and I am sure that you'll understand what I am trying to do. Currently, it's just HTML inserted for illustration purposes. But that's not what I want for sure... This is a work-in-progress site, so far from being finalised, and definitely not ready for release.

Hope the above made sense... if not and you can help, just ask me questions If you indeed can guide me, please don't be too technical... hehehe!

Many thanks,

Cheers,

Olivier
  #2  
Old Jul 21, 2009, 11:29 AM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
In the new theme version you can add widget areas with a new function, see "Add new widget areas"

There is no page.php template in Atahualpa but you can create one by copying index.php as page.php

To limit something to a specific static page use

<?php if ( is_page('Page Title') ) { ?>
...
<?php } ?>

Instead of 'Page Title" you can also use the page ID or the page slug, the part of the URL that refers to that particular page: yoursite.com/page-slug/

See http://codex.wordpress.org/Conditional_Tags for more conditional tags
  #3  
Old Jul 23, 2009, 06:58 PM
Olivier
 
9 posts · Jul 2009
Hi Flynn,

You're a star and/or a genius...! Perfect, worked like a dream...

Cheers,

O

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to post on 2 seperate "Pages" or "Cats" TPR Atahualpa 3 Wordpress theme 18 Aug 4, 2010 08:24 PM
where can I rename "categories" and "Pages" into other titling? curious Atahualpa 3 Wordpress theme 5 Apr 28, 2009 03:15 PM
Flexx theme - How to change my "List Category or Archives" to "List Titles ONLY" ?? idaks01 Post-Kicker, -Byline & -Footer 0 Mar 28, 2009 05:22 PM
modifying font size of "Today's Events" and "Upcoming Events" in sidebar ritland Forum How-To 0 Mar 16, 2009 03:23 PM
"Remove 2nd footer link to BFA" doesn't work Flynn Atahualpa 3 Wordpress theme 0 Dec 13, 2008 04:47 PM


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


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