The Easiest Way to Add Shortcodes to a WordPress Sidebar?

In today's WordPress hack we're going to show you how to add shortcodes to your WordPress sidebar. You can display anything like WooCommerce product list, post grid, follow us buttons or contact form via shortcode.

Let’s take the contact form as an example. To display it in any of your widget areas you need to open it’s settings and copy the shortcode itself.

add-shortcode-in-sidebar-wordpress

Go to Appearance -> Widgets and find Text widget among available widgets on the left. Drag it to the needed widget area and drop it there.

add-shortcode-in-sidebar-wordpress

Paste the shortcode into the Text widget’s content section and give it a name if you want to. Save the changes.

add-shortcode-in-sidebar-wordpress

When done, you can check the page with the widget area you put the text widget into. The shortcode will display there.

add-shortcode-in-sidebar-wordpress

That wasn’t hard at all, was it? Now feel free to go ahead and check our WordPress themes library here.



Jeff Bell

Jeff is a Tech Support Operator at TemplateMonster. Helping our clients to edit and customize their sites every day, he knows what they need most and how to make it as easy as possible. More than one satisfied client already promised to call their child after him. Being a semi-professional high jumper in the past Jeff leaves no issue unresolved.

Get more to your email

Subscribe to our newsletter and access exclusive content and offers available only to MonsterPost subscribers.

From was successfully send!
Server error. Please, try again later.

Leave a Reply