• Skip to primary navigation
  • Skip to main content

Thats Journal

  • Home
  • About
  • Digital Marketing
    • Affiliate Marketing
    • Branding
    • Content Marketing
    • Email Marketing
    • Marketing
    • Sales and Marketing
    • SEO
  • Social Media
  • Influencers
  • Resources
  • WordPress
    • WordPress Plugins
    • WordPress Themes
  • Sitemap
  • Contact Us
  • Show Search
Hide Search

Disable Infolinks Ads In Post, Sidebar, Footer In WordPress

admin · Aug 12, 2013 · 8 Comments

You can disable or remove Infolinks ads from a particular section, sidebar, footer, header, region, archives, search results, search forms, homepage, comments, every page, every post, post or page of your WordPress blog. Below given is the process to disable it from different sections:

1) Sidebars: Infolinks ads doesn’t look good in the widgets and sidebars. To remove Infolinks ads from widgets, sidebars add the below given code as the first line in the sidebar.php file of your theme. You can edit this file from your WordPress admin panel by visiting Appearance –> Editor:

and, add the below given code as the last line in the same sidebar.php file:

That’s it, now, Infolinks ads will not be shown in the widgets and sidebars of your blog.

2) Post, Page section: In a post or page if you adding block-quotes, some important content which should be free from ads or any affiliate marketing links and you don’t wish that Infolinks ads should be displayed in this particular post or page section then, simply add the below given code in the “Text” section of Post or Page editor:

and, add the below given code at the end of the post or page section:

3) For an entire post or page: For some posts or pages you may want that the Infolinks ads should not be displayed entirely for the particular post. For Example, contact page, FAQ page, About page, Services page, Testimonials page, etc. For that, go to “Text” section of Post or Page editor and add the first line as the below given code:

and, add the below given code as the last line:

4) Footer, Header and any other sections: You can remove the Infolinks ads altogether from the footer, header or any other sections of your blog as per your requirements. First, you need to find the specific files which you need to edit for specific sections:

For disabling Infolinks in footer: Edit footer.php

For disabling Infolinks in header: Edit header.php

For disabling Infolinks in archive page: Edit archive.php

For disabling Infolinks in comments section: Edit comments.php

For disabling Infolinks in search results page: Edit search.php

For disabling Infolinks in search forms page: Edit searchform.php

For disabling Infolinks in homepage of your blog: Edit index.php

For disabling Infolinks in every page of your blog: Edit page.php

For disabling Infolinks in every post of your blog: Edit single.php

Now, add the below given code as the first line in any of the above given files as per your needs:

and, add the below given code as the last line in the same file:

Share this:

  • Click to share on Facebook (Opens in new window)
  • Click to share on Twitter (Opens in new window)
  • Click to share on LinkedIn (Opens in new window)
  • Click to share on Pinterest (Opens in new window)
  • More
  • Click to print (Opens in new window)
  • Click to share on Reddit (Opens in new window)
  • Click to share on Tumblr (Opens in new window)
  • Click to share on Pocket (Opens in new window)
  • Click to share on Telegram (Opens in new window)
  • Click to share on WhatsApp (Opens in new window)
  • Click to share on Skype (Opens in new window)

Related

Ad Networks ad network, ad unit, ads, Advertisement, archive, blog, comments, content, customize, forms, header, homepage, making money online, page, region, remove, revenue, search results, section, template, Theme

About admin

Thanks for dropping by! This post was published by the Editorial Team of Thats Journal. Follow us on our social media channels for current trends on Digital Marketing, Social Media Marketing and WordPress Themes.

Disclosure: Thats Journal is supported by our readers. This page may contain affiliate links. That means, if you click on these links to make a purchase, we may earn a small commission (at no extra cost to you). These funds help us to keep this blog up and running.

Categories

Subscribe via Email

Enter your email address to subscribe to Thats Journal and receive new posts by email.

Join 37,917 other subscribers

Join Our Community of 50,000+ Bloggers And Authors!

Reader Interactions

Comments

  1. ambarish says

    October 11, 2013 at 3:28 pm

    I want any such thing for blogger>.. Can you please suggest?
    I want to remove infolinks from the sidebar.

    Reply
  2. Maneesh Upadhyay says

    October 14, 2013 at 9:53 am

    For Blogger, try this: Click on “Customize” on the top right. Then, click on “Template” on the left menu. Under “Edit Template HTML”, find:

    remove infolinks from sidebar in blogger

    Just below that, place the Infolinks OFF code as given in Step-1 of this article. When you are done, click on “Save template”.

    Reply
  3. Siraj Mahmood says

    April 28, 2015 at 2:03 am

    Recent days, we are facing that kind of trouble. Infolinks ads links showing up in sidebars, post titles, and further non targeting places. This post definitely help me a lot, thank you so much for this informative sharing.

    Reply
    • admin says

      April 30, 2015 at 12:13 am

      You are welcome!

      Reply
  4. Kingsley says

    July 10, 2015 at 12:45 am

    Nice tricks it worked

    Reply
    • admin says

      August 9, 2017 at 10:45 am

      You are welcome, Kingsley!

      Reply
  5. fromsizezerotowisehero says

    August 9, 2017 at 10:34 am

    I am trying to switch it off for my home page but this does not work. Is there something I am doing wrong?

    Reply
    • admin says

      August 9, 2017 at 10:43 am

      For the homepage, you need to edit the index.php file in your blog and add the OFF code as given in the first line and ON code in the last line in that file. (Point Number 4)

      Reply

Leave a Reply Cancel reply

Copyright © 2022 Thats Journal