≡ Menu

[How-To Guide] Show Ads In Pages Only In Thesis WordPress Theme

Thesis WordPress Theme comes with lots of features and it is one of the best premium WordPress Theme which is widely used by bloggers on their blog. The best thing I like about Thesis WordPress Theme is that it comes with in-built SEO options and offers you to cut down all SEO plugins from wp-plugins folder. Even without any knowledge of CSS and PHP anyone can customize it pretty easily and if you have not get your copy of Thesis WordPress Theme, then get it right now:

Sign-Up Link for Thesis WordPress Theme

Already, I have covered few articles 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 Post Content in Thesis WordPress Theme

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

How to Show Ads in Single Posts in Thesis WordPress Theme

All these posts help you to monetize your blog easily and if you have any query get in touch using contact form. In this post I’m sharing how to show ads in pages only 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-post-thesis

Step2: When you click on “Custom File Editor”, a new window open (shown below). Now from drop-down navigation menu select “custom_functions.php” file and click on “Edit selected file”.

show-ads-post-thesis1

Step3: When you click on “Edit selected file”,  a new window open as shown below:

show-ads-post-thesis2

Step4: Now copy this code:

function page_ads() {

if (is_page()) { ?>

// INSERT YOUR AD CODE HERE//

<?php }

}

add_action(‘thesis_hook_after_post’, ‘page_ads’);

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

show-ads-post-thesis3

Step6: Congratulations, now you can easily show ads in pages only in Thesis WordPress Theme.

If you have any query let me know via comments or 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 all your friends and do not forget to follow WebGuide4U on Twitter for more Thesis Tutorials.

{ 0 comments… add one }

Leave a Comment