Using Same Custom Text Widget on Multiple Pages
-
I have been using this plugin to customize sidebars on each page of my website. It works great for what I need.
I was wondering if there is anyway to use the same widget multiple times, so that if I need to change something, I can change it in one place and it will update on all sidebars.
For example, lets say I use two different disclaimers, one on 30 pages and one on 25 pages. Is it possible to just create each one once and use them in multiple sidebars?
Thanks!
-
Hi @atooley,
Hope you’re well today! 🙂
I can’t really think of a way to clone widgets like that with this plugin alone. But perhaps you might be able to achieve that using this?
http://ww.wp.xz.cn/plugins/duplicate-widget/
It’s a bit older, but I do think it’d work still. Perhaps you could give that a go?
Cheers,
DavidThanks David,
Just getting back to this. Based on the support forum for that plugin, it looks like it does not work with this one.
Does WPMU have any plans to create something like that plugin to go along with this one?
Otherwise, do you think it is possible to include a bit of standardized text into the template that would go along with Custom Sidebars? Then a webmaster could use different templates along with Custom Sidebars for vary standardized bits of text by page (let’s say 40 pages use one block of text and 30 use a different block of text, but I don’t want to create 40 widgets for one and 30 for the other).
Thanks!
Hi @atooley,
Thanks for your reply.
If you add this to your functions.php file or using Code Snippets (http://ww.wp.xz.cn/plugins/code-snippets/), you’ll be able to use shortcodes in text widgets:
add_filter('widget_text', 'do_shortcode');You could then throw together a shortcode that displays something different based on the page it’s used on:
http://codex.ww.wp.xz.cn/Shortcode_APIOr as a plugin based workaround, perhaps you could use this?
https://ww.wp.xz.cn/plugins/conditional-widgets/It seems kind of a strange workaround to me but using conditional widgets should let you display different widget content based on the page.
Perhaps one of those methods will work for you?
Cheers,
David
The topic ‘Using Same Custom Text Widget on Multiple Pages’ is closed to new replies.