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] Post by Post Sidebar Generator Widget?


  #1  
Old Dec 10, 2009, 05:35 PM
Rashell's Avatar
Rashell
 
67 posts · May 2009
I just plugged in the Sidebar Generator Widget which allows me to create unique content sidebars and assign each sidebar on a page by page or post by post basis via a drop down menu in the write/edit post page.

I was originally using Widget Logic to accomplish the general goal but I found myself copying the same code over and over since I wanted several instances of the same widget(s) on maybe 5 pages and not on the rest. With this I make one sidebar fill it with a widget(s) and then assign it to a page then... go to the next page without having to revisit the widget page every time I want to add or subtract sidebar information from a page.

HOWever,

The plugin requires I switch each instance of

dynamic_sidebar

to

generated_dynamic_sidebar

in the sidebar.php (which ATA 3.4.4 doesn't seem to have).

Went to the functions.php file and found the term twice. When I switched them, the new sidebar was created but it filled every instance of the new widgets I'd created with the "add widget area" formula. It didn't show up in the L, LI, R, RI sidebars.

I'd like to be able to control the 4 original (L, LI, R, RI) positions with this plugin.

Would that be possible and are there parts of the code I should just never touch?

Thanks much,

Rashell

BTW-- This theme is absolutely intense. My website looks very simple from the front but most importantly it doesn't look like a blog. That is until you get to the posts and you see "bloggy" style formatting (on purpose). Very cool!!!!
  #2  
Old Dec 10, 2009, 08:06 PM
Rashell's Avatar
Rashell
 
67 posts · May 2009
Was able to get it to work (sort of)... I haven't figured out where the "Right Sidebar" php is so I've only been able to test out how it functions on the left hand side. Here's what I did...

In header.php I changed

PHP Code:
<?php // Widgetize the Left Sidebar 
            
if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Left Sidebar') ) : ?>
to

PHP Code:
<?php // Widgetize the Left Sidebar 
            
if ( !function_exists('generated_dynamic_sidebar') || !generated_dynamic_sidebar('Left Sidebar') ) : ?>
I left the Left Inner (LI) alone since it seems with more than 1 area switched to "generated" the plugin loads duplicate content into each individual sidebar area. So... you can only manipulate one sidebar per page with this.

I'm off to search for the "right sidebar" php...

Rashell

BTW- Another thing I noticed... whichever sidebar you configure as a "generated" sidebar will no longer work as a "traditional" sidebar. So, if I put a widget into the original ATA "Left Sidebar" widget panel (in Appearances --->Widgets) nothing would display on my site. I have to use the "generated sidebar" to configure that sidebar space. (hope that makes sense)

Last edited by Rashell; Dec 10, 2009 at 08:37 PM.
  #3  
Old Dec 10, 2009, 08:29 PM
Rashell's Avatar
Rashell
 
67 posts · May 2009
well duhhhh. One was in the header.php the other is in the footer.php

Rashell
  #4  
Old Dec 14, 2009, 03:00 PM
Rashell's Avatar
Rashell
 
67 posts · May 2009
I just found a plugin that's even easier than this and doesn't require any changes to the .php since it uses the same coding stuff that widget logic does. It's called TS Custom Widgets. With it you can assign/restrict multiple pages, posts, categories, etc from a single admin panel with radio button selections. The only problem... it is registered as ready for up to WP 2.7.4 (but it works fine on most current version).

Bookmarks

Tags
dynamic, sidebar, unique content, widget area



Similar Threads
Thread Thread Starter Forum Replies Last Post
Contents of a post coming 'through' the right sidebar. kostermw Sidebars & Widgets 11 Dec 14, 2009 09:42 AM
Post appearing in sidebar widget but not front page paulae Atahualpa 3 Wordpress theme 4 Oct 15, 2009 09:00 AM
[SOLVED] Next post and previous post links on top of single post page error susieswe Atahualpa 3 Wordpress theme 2 Jul 15, 2009 03:58 PM
XML Sitemap Generator gradlebum Atahualpa 3 Wordpress theme 0 May 30, 2009 06:24 PM
No Spacing Between 1st Post and Sidebar in IE LabbyRoad Atahualpa 3 Wordpress theme 2 May 26, 2009 02:09 PM


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


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