Genesis Customization

Place Advertisements Below Post Title in Genesis without Plugins?

Place Advertisements right below Post Title in Genesis

Place Advertisements right below Post Title in GenesisYou can’t make the most out the advertisements you are publicizing on your site unless they are placed at the right place. Why to place Advertisements below Post Title? Answer is quite simple, it is the best place with highest CTR (Click Through Rate). In one of our earlier articles I have discussed the same topic for Blogger blogs. So if your blog is hosted on Blogger and you haven’t read it yet then you can check it here:

If you’ve WordPress site which runs on Genesis Framework then this trick will help you to make the most money out of your advertisements. The special thing about this trick is that we are doing it without adding any Space Consuming plugins to the WordPress core. You can place any type of advertisements using this trick like AdSense, BuySellAds, Chitika or any other affiliate banner.

ALSO CHECK:

How to Place Advertisements right below Post Title in Genesis?

Very simple process, just follow the steps given below.

STEP 1. Go to Dashboard >> Appearance >> Editor.

STEP 2. Add the code given below to your functions.php file.

function below_title_ad() {
if (is_single())
{ ?>
<div style=”margin: 10px 10px 25px 10px;”><center>YOUR AD CODE HERE</center></div>
<?php }
}
add_action ( ‘genesis_before_post_content’, ‘below_title_ad’, 10, 1);

NOTE: In the above piece of code we used Genesis Action Hooks. “genesis_below_post_content” helped us to place the advertisement right below post title. Actually by adding this code we are placing Ad above Post Content so in any case it will work for you. If your theme supports Post Meta Data then also this code is suitable because in that case it will automatically place the ad below it.

STEP 3. (Customization) Change margin: 10px (Top Margin) 10px (Right Margin) 25px (Bottom Margin) 10px (Left Margin); according to your need.

STEP 4. Save you functions.php file and you’re Done. That’s All!

Final Words!

This simple trick is very helpful especially for Genesis users because we are using a short piece of code which doesn’t lay any impact on your site’s load time. HAPPY BLOGGING!

KEEP CALM AND CUSTOMIZE GENESIS

You Might Also Like

One comment

  1. 1

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>