WordPress.org

Plugin Directory

Widget Shortcode

Adds [widget] shortcode which enables you to output widgets anywhere you like.

The shortcode requires the widget ID, but no need to guess, the plugin generates the code for you. To override the widget title for a widget you can use the "title" parameter:

[widget id="text-1" title="New title"]

You can also hide the widget title entirely if desired:

[widget id="text-1" title="0"]

Additional Parameters:

  • container_tag: the HTML tag to use for the widget container, default: div
  • container_class: CSS classname added to the widget container, default: widget %2$s (Note: uses sprintf for variable substitution)
  • container_id: HTML ID attribute for the widget container, default: %1$s (Note: uses sprintf for variable substitution)
  • title_tag: HTML tag to use for the widget title wrapper, default: h2
  • title_class: CSS classname for the widget title wrapper, default: widgettitle

Requires: 3.0 or higher
Compatible up to: 4.6.1
Last Updated: 2 weeks ago
Active Installs: 40,000+

Ratings

4.9 out of 5 stars

Support

1 of 2 support threads in the last two months have been marked resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,2,2
100,1,1
100,1,1
100,4,4
100,2,2
100,1,1
0,1,0
50,2,1
100,1,1
100,1,1
0,1,0
100,1,1
100,1,1
100,2,2
100,1,1
0,1,0
100,1,1
100,1,1
100,1,1