Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Sidebars & Widgets (http://forum.bytesforall.com/forumdisplay.php?f=14)
-   -   Sidebar widget for specific pages (http://forum.bytesforall.com/showthread.php?t=14545)

bluewombat Jun 8, 2011 09:28 PM

Sidebar widget for specific pages
 
Hi,
I looked for a Text/HTML widget which would display only on certain pages, and I could not find one.
So I have used functions/bfa_subscribe.php as a template and created functions/bfa_flextext.php
Feedback welcome. If the developers want to add it to the base, that would be ideal.

The idea is that if you want a couple of variations of a text or html area with one appearing on some pages and one appearing on others, this lets you do it. You can add multiple instances to a single sidebar. There are two modes - show on specified pages and suppress on specified pages.

Download for a short time only from http://www.clari.net.au/bfa_flextext.php.gz

Danny

juggledad Jun 9, 2011 02:50 AM

You can use the 'widget logic' plugin to do this. It adds an area to each widget you can add a conditional to. So if you want to see the widget only on page 8, you would use Something like
HTML Code:

is-page('8')

Douglas Jul 18, 2011 07:54 AM

The most powerful, and easy-to-use plugin for controlling when widgets display seems to be the Dynamic Widgets plugin (http://wordpress.org/extend/plugins/dynamic-widgets/). Unlike with Widget Logic, you do not have to know how to craft PHP conditional statements. I had Widget Logic installed for a long time but wasn't comfortable with trying to learn the coding syntax. With Dynamic Widgets I was able to implement what I wanted very quickly.

aravere Oct 14, 2011 03:44 PM

Quote:

Originally Posted by Douglas (Post 69666)
The most powerful, and easy-to-use plugin for controlling when widgets display seems to be the Dynamic Widgets plugin (http://wordpress.org/extend/plugins/dynamic-widgets/). Unlike with Widget Logic, you do not have to know how to craft PHP conditional statements. I had Widget Logic installed for a long time but wasn't comfortable with trying to learn the coding syntax. With Dynamic Widgets I was able to implement what I wanted very quickly.

The address above doesn't work, but these do:
-Plugin homepage: http://www.qurl.nl/dynamic-widgets/
-WordPress plugin page: http://wordpress.org/extend/plugins/dynamic-widgets/


All times are GMT -6. The time now is 07:24 AM.

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