• Skip to primary navigation
  • Skip to main content

WebGuide4U

Photoshop | WordPress | Webhosting | Web Designing | Discount Coupon

  • Homepage
  • About Us
    • Author
  • Advertise
  • Free WordPress Installation
  • Contact Us
  • Show Search
Hide Search

[How-To Guide] Show Ads On Home Page After First Post Only In Thesis WordPress Theme

Thesis WordPress Theme is one of the most popular WordPress Theme which comes with lots of in-built options and without any knowledge of CSS and PHP anyone can easily customize it. In addition to this Thesis WordPress Theme comes with 30 day money back guarantee which means that if you do not like Thesis WordPress Theme, then you can get back your money easily.

Still thinking to buy this awesome WordPress Theme, do not think get your copy right now:

Sign-Up Link for Thesis WordPress Theme

Already, I have shared few tutorials on showing Ads in Thesis WordPress Theme. Here is a quick recap:

How to Add BuySellAd Code in Thesis WordPress Theme

How to Add Google AdSense Ads After Post Title in Thesis WordPress Theme

How to Add Google AdSense Ads After End of Post in Thesis WordPress Theme

How to Add Google AdSense Link Unit Below Navigation Menu  in Thesis WordPress Theme

How to Show Ads in Single Post in Thesis WordPress Theme

How to Show Ads in Pages Only in Thesis WordPress Theme

All these tutorials helps you to show ads on your website and offers you a unique way to make money from your website. Continuing in same series of posts, in this post I’m sharing how to show ads on home page after first post in Thesis WordPress Theme. Here is a quick and step-by-step guide:

Step1: First log-in into wp-admin panel, then go to “Thesis” tab and click on “Custom file editor” as shown below:

show-ads-homepage-thesis

Step2: When you click on “Custom file editor” (in step1), it open a new window as shown below. Now from drop-down select “custom_functions.php” file and click on “Edit selected file”.

show-ads-homepage-thesis1

Step3: When you click on “custom_functions.php” file (in step2),  a new window open.

show-ads-homepage-thesis2

Step4: Now copy this code:

function after_first_post_ad($post_count) {

if (is_home()) {

if ($post_count == 1) { ?>

// INSERT YOUR AD CODE HERE//

<?php }

}

}

add_action(‘thesis_hook_after_post’, ‘after_first_post_ad’);

Step5: After copying above code (i.e. the code from step4), paste the code in “custom_functions.php” file (in step3) and click on “Big Ass Save Button” as shown below:

show-ads-homepage-thesis3

Step6: Congratulations, now you can show ads on home page after first post.

If you have any query let me know via comments or you may get in touch using contact form.

If you have not get your copy of Thesis WordPress Theme, then get it right now:

Sign-Up Link for Thesis WordPress Theme

Find this post useful? Then why not share it with your friends also. Meanwhile do not forget to follow WebGuide4U on Twitter for more Thesis Tutorials.

How-To, Thesis Customization

Reader Interactions

Comments

  1. ddk says

    September 17, 2011 at 20:33

    Thanksss aaaaaaa lottttttttttttttt!!!!!!!!!

  2. Hariharakumar says

    March 6, 2013 at 22:51

    Tried it not working

Leave a Reply

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

Hit the ground running with a minimalist look. Learn More

WebGuide4U

All rights Reserved. Articles cannot be reproduced without permission from the author© 2025