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 |
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') |
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.
|
Quote:
-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 05:57 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.