Caldera Form Shortcodes in a sidebar widget.


How to Use Caldera Form Shortcodes In A Sidebar – WordPress 4.2.2.

Caldera Form is a great plugin, which gives you a shortcode to add the plugin content to a WordPress post or page. There is a widget to use in a widget area, but it doesn’t work in WordPress 4.2.2.

Step 1. First thing you need to do is open your theme’s functions.php file and paste this code (and the comment):

// add shortcodes in the widget 
add_filter('widget_text', 'do_shortcode');

Step 2. Save functions.php file.

Step 3. To find the short code for your form, go to any page, place a cursor somewhere on that page and click on the Caldera Form button above the content editor. Insert Caldera Form popup window will show up and you will need to select the form you would like to use. Click on Insert Form. A short code [caldera_form id=“XXXXXXXXXXXXXX”] will apear on your page. Highlight it and copy the code. Since you don’t want to use this form on the page, delete it, but you will use this code in the sidebar widget.

Step 4. In your WordPress Dashboard, go to Appearance » Widgets Screen. Find the widget area you want to use.

Step 5. Add a Text Widget to your widget area, maybe your Sidebar.

Step 6. Paste the copied short code and save.

One comment:

  1. Thanks for using Caldera Forms! We did get caught by the changes to widgets in WordPress 4.2 like a lot of people, but this has been fixed. That said, the shortcode trick you recommend is a great one for using any shortcode as a widget.

Leave a Reply

Your email address will not be published. Required fields are marked *