free hit counters
If you are using Internet Explorer as your browser please be running at least IE 7 or above. This site does not support IE 6 or below. Go here for the latest free version including easy download and installation instructions If you want to make it real easy on yourself, download Firefox , the most popular browser in the world. It's free and simple. You'll be so glad you did.
Apr
23
2009

Add different widgets to different pages

You have the ability to add widgets on specific pages only, if you chose. You don’t necessarily have to have them show up on every page. Say, for example, you want to add an image of something that only has to do with the specific page you are writing. You can make that image just show up only on that specific page.

The key to this is to use the Widget Logic plugin.  You can get it HERE

Follow the download and installation instructions and then activate the plugin

Now, anytime you open a widget to edit it, you will see the widget logic plugin running….

1471

In the area labeled “widget logic” is where you’re going to insert wp conditional tags to tell the widget where to appear

A complete list of wp conditional tags can be found HERE

Say you want your widget to appear only on a page you named “recipes”. First, make sure you have created the page and published it

Next, in the widget logic box you type this code…

is_page(’recipes’)

You can add as many pages as you want. Using the above example say you want that same widget to appear on a page you created named “directions”. You would simply add the next page separated with “pipes”…

is_page(’recipes’) || is_page(’directions’)

Leaving a comment with code in it...

If you would like to leave a comment and you have examples of code you want to show, you must "escape the code". This allows the entire code to show correctly by inserting certain variable around certain tags to make them show. If you don't "escape the code" your code will show up broken, mangled, and it won't be able to be seen correctly. "Escaping the code" is very simple...

  1. Copy your code you want to show
  2. Click here to go to the site to escape the code
  3. Follow the directions, it's so easy
  4. Once you have the escaped code copied, paste it in the comments area where you want
  5. Now you can enjoy life


Go ahead, leave a comment...

{ 1 trackback }

8 Thesis Theme Tutorials You Can Use Today
April 27, 2009 at 11:50 am

{ 0 comments… add one now }

Leave a Comment

Previous post: Add an image with a widget

Next post: Remove the link outline box when you click on an link