Do you want to add new widget area after 2, 3 or 4 posts on homepage of your Genesis Theme? New widget area can be used for almost anything: be it Adsense Ad code, newsletter sign up box, social media button, any random text or image.
Add new widget area between posts in Genesis
1. Paste the following code in the end of functions.php file. Remember to backup your functions.php file before making changes.
2. Then go to Appearance > Widgets area, you should see new “Between Posts Area” section. Drag and drop any widget into this section to display it after 3 posts on homepage.
3. You can customize this widget area by adding specific (.between-posts-area ) class to your style.css file. Add following code to style.css (this is a sample code and can be modified to your specific requirements).
4. You can also customize “after number of posts” this new widget box should appear, just change “3” number in the code. You can also change loop counter value (currently 0 in the code). For example: If you want to display this new widget after 3 post only once. Considering that you have 10 posts showing on homepage, then set loop counter value to 10.