A user in my Facebook group wanted to know how a wide middle section can be added between posts similar to http://thefoxandshe.com/.
Genesis hooks and built-in WordPress loop counter can be used with Genesis function (for displaying widget area) to add the necessary markup to split the Posts into top, middle and bottom sections in Genesis.
In this article we shall register three widget areas, add code to display the widgets placed in Home Top Right widget area to the right of first (latest) post, then the Home Middle widget area and Home Bottom Right widget area to the right of remaining posts on the Posts page. Paginated pages will continue to appear normally with the Primary Sidebar on the right.
Appearance > Widgets:
Posts page:
Sample HTML markup of the output:
Step 1
Add the following in child theme's functions.php:
To view the full content, please sign up for the membership.
Already a member? Log in below or here.