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 »

Different widgets showing up on different pages.


  #1  
Old Feb 12, 2010, 01:47 PM
ThaddeusB1's Avatar
ThaddeusB1
 
26 posts · Jul 2009
Lincoln Nebraska
I use Twitter and Facebook feeds in the side bars on my site. I would like to have the feed coincide with the category on the Category page. It seems the easiest thing to do is to set the Right Side Bar to run on the main page and the Right Inner Side Bar to run on the Category page. I could load separate widgets for the separate pages into the specific side bars. This seems like a simple initial solution...
What if I have more than two Category pages? Is the best solution to use a separate Side Bar for each Category, or can I somehow code the widgets to load by page? If page### the load Widget1....?
  #2  
Old Feb 13, 2010, 05:33 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
check out some of the widget logic plugins
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Feb 15, 2010, 11:23 AM
ThaddeusB1's Avatar
ThaddeusB1
 
26 posts · Jul 2009
Lincoln Nebraska
Thanks I'll take a look.
  #4  
Old Feb 22, 2010, 02:00 PM
Toby
 
2 posts · Feb 2010
Reading this thread clued me in to the Widget Logic add-on and it works great for applying a widget item to single pages or categories.

One question though --- can an item be set for more than one page, and if so, what's the syntax that goes in the Widget Logic box?

If I type in is_page('Home') it works fine for that one page. If I try adding another page it all messes up.
  #5  
Old Feb 22, 2010, 04:04 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
check out http://codex.wordpress.org/Conditional_Tags

is_page(array(42,'about-me','About Me And Joe'))
Returns true when the Pages displayed is either post ID 42, or post_name "about-me", or post_title "About Me And Joe". Note: the array ability was added at Version 2.5.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #6  
Old Feb 22, 2010, 04:30 PM
Toby
 
2 posts · Feb 2010
Thanks, JD, that looks like what I'll need.

And thanks for the conditional tags link. When you're new to this like I am, "conditional tags" is not necessarily a term you clue in to.

I really don't get php. I've only learned how to get around in HTML.
  #7  
Old Mar 4, 2010, 09:46 AM
ThaddeusB1's Avatar
ThaddeusB1
 
26 posts · Jul 2009
Lincoln Nebraska
I am using !is_category(83) to remove widgets on a specific page. It works perfect in the right side bar, but seems to have no effect on the Left sidebar. Is this because the page calls the left sidebar before it starts the loop?
  #8  
Old Mar 4, 2010, 02:54 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
ThaddeusB1 - where are you using that code?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #9  
Old Mar 24, 2010, 03:35 PM
ThaddeusB1's Avatar
ThaddeusB1
 
26 posts · Jul 2009
Lincoln Nebraska
I am using that code in the widget box, in the Widget logic box where it asks for the code. If the widget is in the Right sidebar the code works and the widget appears(or not) correctly, but when located in the Left sidebar, the logic does not have any effect.

This led me to think that the code was calling for the side bar, pulling general widgets, before running the loop which identifies the page as a category page...

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
Round Bullets showing in IE as well as default 'blocks' in widgets jdwrite Sidebars & Widgets 1 Jan 27, 2010 03:08 PM
[SOLVED] Comment form not showing on pages Keikurono Comments, trackbacks & pings 17 Dec 28, 2009 04:12 AM
widgets are not showing in right sidebar aquilaciencia Sidebars & Widgets 5 Aug 26, 2009 09:46 AM
[SOLVED] Widgets showing compressed in IE and normal in Firefox wmoura Sidebars & Widgets 2 Jun 4, 2009 07:36 AM
Posts showing up twice on category pages? michiganbasketball Atahualpa 3 Wordpress theme 1 Mar 12, 2009 04:56 PM


All times are GMT -6. The time now is 07:44 PM.


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