The “Put_Content_Here” shortcode

Some themes include text blocks that aren't stored as pages or posts, but as special content stored with the theme itself. We often see these for special parts of a theme, like the footer, or permanent homepage content blocks, or widgets along the side of the page.

Since this content doesn't originate from pages or posts the Wunderbar can't work with these directly. But that's why we've included a shortcode called “put_content_here”.

With this, you don't have to work with the theme's special  containers – instead you insert a [[put_content_here]] shortcode in the special content block so that you can display it – and edit it with the Wunderbar.

You only have to edit the special content blocks one time. (They are usually found through customizing your theme.) Remove any existing content and replace it with the shortcode:

[[put_content_here name=nameofcontent]]

Replace nameofcontent with the name of the content  (sometimes also called the “slug”). You decide on whatever name makes sense. It might be “company_overview” or “footer”. The content doesn't have to exist at this point. Save your template changes.

When you return to the page where the custom content was, hopefully you'll  see the Wonderbar crosshairs. You can click and start editing. The first time through, becuase you have no content yet, it will be created when you save..

Unfortunately, we can't promise this will work on all content blocks. If instead of seeing the crosshair you see the shortcode, then your theme or template doesn't support this feature. It's possible to edit your template files to overcome this by finding where this content is displayed and surrounding it with the function the_content, but the precise details of doing this is outside the scope of this document.

The [[put_content_here]] shortcode will usually work in Text Widgets. [[put_content_here]] also works inside any regular post or page on your site – you can have one post include another.Give it a try!