Place Any Widget Within Content Area of Post or Page

1 Flares Twitter 0 Facebook 0 Google+ 1 LinkedIn 0 Pin It Share 0 StumbleUpon 0 1 Flares ×

Installed a great plugin but want the widget it comes with in your content area?

Widgets are great but they generally can only be used in a widget area.

Unless of course you can simply create a shortcode for that widget.

Then you can insert the shortcode anywhere you like within your posts and pages.

You’ll find a list of 3 hook plugins near the end of this post about WordPress hooks which you can use to execute shortcodes in any hook location.

Free Plugin

This is a plugin which makes it easy to create a shortcode for any plugin which uses widgets.

Once you install the plugin, all you need to do is insert the shortcode and the widget is displayed in that location.  amr shortcode any widget plugin 

The plugin will create a new widget area where you can drag any widget into.

Widgets Shortcodes

In this screenshot i have dragged the Jetpack blog subscriptions widget so i can display the subscription form within the content area of a posts.

To display a widget in all areas of posts or pages, you can install a hook plugin and execute the hook in any area there’s a hook depending on the theme you are using.

You’ll find a list of the shortcodes to use on the plugin page.

You’ll also need to find the i.d for the widget you want to use and insert it into the shortcode.

Finding Widget Name

To find the name of the widget and its i.d, simply right click the widget you have dragged into the shortcodes sidebar and click Inspect Element.

As you can see in this screenshot, the widget name and i.d are: widget-33_blog_subscription-2

Find Widget Name and I.D

Insert the shortcode with the widget name 

Example: [do_widget id=blog_subscription-2]

You don’t insert the widget i.d just the name as shown above.

I tested this and it works fine.

Its also a great way to insert the Jetpack subscriptions widget into your posts.

Widgets on Pages

Another free plugin which enables you to display widgets on posts and pages using shortcodes is Widgets on Pages.

Tested this plugin as well and works. Simply follow the instructions on the plugin installation page and insert the short code.

Premium Plugin

Another plugin which also does this is the Custom Widget Areas for WordPress plugin. Its a premium plugin and does pretty much the same thing as the amr plugin.

It adds a small icon to your editor so all you need to do is click the icon and insert the shortcode anywhere you want to display the widget.

1 Flares Twitter 0 Facebook 0 Google+ 1 LinkedIn 0 Pin It Share 0 StumbleUpon 0 1 Flares ×

Comments

  1. Durga says

    Its a good Plugin., I hope to more plugins, I’m also looking for an affiliate plugin, something similar to InfoLinks, where in can select a particular word from the complete blog and put an affiliate link., can you suggest anything similar to this

    Thanks once again

    • says

      Hi Chris

      Won’t look as good unless you get some really good CSS which depends on your theme’s forum support.

      I know the guys at Kolakube are really good with this side of things. Not the same at Studiopress.

      What did you think of OptinSkin Chris?

    • says

      Viewed your vid. Great idea Bradley and something i would like to see in Genesis child themes. You could use a Genesis home.php file and try and create a widgetized template for Woo themes from it.

  2. Bradley Charbonneau says

    Hey Brad,

    I put a comment in here yesterday, but it had a few links in it. Maybe it got Akismetted! Thanks for checking!
    Best,
    Bradley

Leave a Reply