Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

Autofocus pro: Sidebars and Layouts. WordPress

  • SOLVED

Hi Experts,

I installed Autofocus Pro and I'd like to install a couple of functions on it:

<strong>·</strong> I'd like one of my pages to look like this one (demo of the theme) : http://fthrwght.com/autofocus/prodemo/level-1/empty-gallery/
There are 3 blocks, with one picture and a title in each, that lead to the picture in full size+ a longer text.
How do I get this layout?
(thumbnail + title + sentence + amount of pics + frame)

<strong>·</strong> There will be a sidebar on almost each page of the website.
Each sidebar will content a list of links of the page's children. (and sometimes other pages of the site).
How to create these sidebars this way?

<strong>·</strong> One of the sidebars should contents the latest posts from 1 category only.
I haven't found where and how to put a filter yet.

<strong>Important:</strong>
Since Autofocus Pro is a child theme of Thematic, there is no "index.php or "home.php" in the theme directory.
Only: Blog-template, functions, image, page and thematic-functions.php (+ different CSS).


Thanks in advance,

Catherine

Answers (1)

2010-12-06

Bob answers:

<blockquote>I'd like one of my pages to look like this one (demo of the theme) : http://fthrwght.com/autofocus/prodemo/level-1/empty-gallery/
There are 3 blocks, with one picture and a title in each, that lead to the picture in full size+ a longer text.
How do I get this layout?
(thumbnail + title + sentence + amount of pics + frame)</blockquote>

To me this looks like a page or post using nextgen gallery short-codes (the nextgen plugin). The link you provided is using that plug in, I am not sure if it is 'bundled' with the theme. To insert a thumbnail that links to a gallery you would enter something like this into your post editor. If the theme does not come with nextgen you will have to download it.
[ nggtags gallery=YourGalleryNameHere]

<blockquote> There will be a sidebar on almost each page of the website.
Each sidebar will content a list of links of the page's children. (and sometimes other pages of the site).
How to create these sidebars this way?</blockquote>

It would probably be best to simply drag a widget into your sidebars, I recommend trying widget logic [[LINK href="http://wordpress.org/extend/plugins/widget-logic/"]]http://wordpress.org/extend/plugins/widget-logic/[[/LINK]] and/or Query posts widget [[LINK href="http://justintadlock.com/archives/2009/03/15/query-posts-widget-wordpress-plugin"]]http://justintadlock.com/archives/2009/03/15/query-posts-widget-wordpress-plugin[[/LINK]]

If not you can add a custom page template for your child theme ( something like photo-single.php) or edit the default one and use wp_list_pages with a child parameter, [[LINK href="http://codex.wordpress.org/Function_Reference/wp_list_pages"]]http://codex.wordpress.org/Function_Reference/wp_list_pages[[/LINK]]

An example would be adding this to your loop
<li><ul>
<?php wp_list_pages('title_li=&child_of='.$post->ID.''); ?>
</ul></li>


If your not comfortable with editing the template files of the child theme you can use a plugin called php widget ( [[LINK href="http://wordpress.org/extend/plugins/php-code-widget/"]]http://wordpress.org/extend/plugins/php-code-widget/ [[/LINK]]) That will allow you to add php into a text widget ( for example the above php code), go to your "widgets" in your menu, add a text widget to your side bar and the above code.

ps. The php widget and widget logic plugins do not currently work together.

Hope this helps.


Kat Deskat comments:

Hi Bob,
Thanks for your precise answer.
I installed nextgen and it works fine. :)

However I still can't make any of the sidebars work...
I need to investigate more.

Your answer was very helpful though.
:)