To add a widget between text in your content area, you could install a plugin which creates a shortcode.
Or you could simply add a few extra lines of PHP to your code that creates your widget.
This tutorial provides 2 code snippets you can use to add a new widget area within the body of your content area.
- The 1st snippet works with Genesis
- The 2nd snippet works with any theme
This example show you the widget text between the 1st and 2nd paragraphs in a post.
The PHP simply creates a new widget with a shortcode.
Add the PHP code to your functions file and the shortcode to your text editor.
Get Full Access & Support
You need to pay to fully access this tutorial.
Enjoy unlimited access & coding support by registering.