Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

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, 02: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, 06:33 AM
juggledad's Avatar
juggledad
 
23,682 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, 12:23 PM
ThaddeusB1's Avatar
ThaddeusB1
 
26 posts · Jul 2009
Lincoln Nebraska
Thanks I'll take a look.
  #4  
Old Feb 22, 2010, 03: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, 05:04 PM
juggledad's Avatar
juggledad
 
23,682 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, 05: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, 10: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, 03:54 PM
juggledad's Avatar
juggledad
 
23,682 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, 04: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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


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 04:08 PM
[SOLVED] Comment form not showing on pages Keikurono Comments, trackbacks & pings 17 Dec 28, 2009 05:12 AM
widgets are not showing in right sidebar aquilaciencia Sidebars & Widgets 5 Aug 26, 2009 10:46 AM
[SOLVED] Widgets showing compressed in IE and normal in Firefox wmoura Sidebars & Widgets 2 Jun 4, 2009 08:36 AM
Posts showing up twice on category pages? michiganbasketball Atahualpa 3 Wordpress theme 1 Mar 12, 2009 05:56 PM


All times are GMT -6. The time now is 01:27 PM.


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