Displaying advertisements before and after actual article content is a must for majority of blogs and websites. Genesis child theme users can easily add new widget section below post title (before post content) and after the post content to show ads in these areas. Once you add new sections, just use add text widget to those sections and paste any code that you want to display. Besides the usual ad code, you can insert code to display social icons or use any other widgets in those sections like recent posts, search, comments etc.
1. Add ads below Post title on single Posts
Add following code to functions.php file. This code will register and create new widget “Ad After Title” in the widgets area.
Once you add the code, goto widgets area and drag text widget to “Ad After Title” section. Then paste your Adsense ad code or any other advertisement code to that text widget.
The added advertisement will only display below post title on single posts. You can also customize the look of this ad code section by adding following code to your style.css file.
2. Add Ads at post content end on single post
Add following code to functions.php file. It creates new “Ad After Content Area” widget in the widgets area. Now goto widgets aread and drag text widget to “Ad After Content Area” widget section. Then paste advertisement code, social icons code, simple text or anything that you want to display after post content on single posts in the text widget.
Similar to above, you can customize look of this section by adding “ad-after-content” class to style.css file. You can begin by adding following code to style.css and then customize it further as per requirement.