Bluehost WordPress Hosting Blocked Plugins
Hello, fellow website owner! If you’re reading this, I assume you’re looking for help dealing with annoying ads on your site. You’re in the right place. Let’s get to it.
What Are Ads And Why Do I Need Them?
Simply put, ads are annoying little webpages that appear at the top, bottom, or side of a website’s content. These ads might come in the form of banners, pop-ups, or slide-downs. They usually get in the way of me finding content or taking away my attention from what’s important to me.
For example, if I’m reading an e-book about marketing and I come across a banner ad for Vitamin C serum, I’ll probably decide that the content isn’t worth my time and click the ad to continue reading the book.
Do I Need To Disable Them?
Whether you want to admit it or not, every website owner needs to look at the banner ads that appear on their sites. Even if you get a large amount of money for advertising with banners and sponsors, you’ll never be able to avoid them altogether. As a result, you’ll have to ask yourself if you need to disable some of them.
If you’re running an e-commerce store and you decide that the ads for products that aren’t related to your website’s topic are getting in the way of your customers, you might want to consider turning off those ads.
Why Do I Need To Disable Them On My WordPress Site?
WordPress is one of the most popular content management systems out there. It’s incredibly flexible and can be used to create pretty much any website you might want to make. This being said, it also has a dark side and, like many other CMSs, it’s not suitable for use if you want to avoid advertising and trackers.
If your goal is to make a quick cash grab, you might want to look into other platforms. WordPress is a fantastic choice if you want to create a professional-looking website but don’t want to worry about ads.
How Do I Disable Them?
There are a few different ways that you can go about disabling ads on a WordPress site. For the sake of this tutorial, we’ll be focusing on the most widely used and simple methods.
First up, you could use a plugin. Many WordPress users decide to use AdBlock Plus, which is a free and open-source plugin. With AdBlock Plus, you can choose to disable ads by clicking the “Always Allow” button for individual sites or you can choose to allow ads but block them from ever appearing on your site. You can also choose what types of ads you want to allow (banner, social media, or text links) and whatnot (for example, you can choose not to allow ads on videos or certain mobile platforms like iOS).
1. How To Block Ads On A WordPress Site
To start with, you’ll need to go to your WordPress dashboard and click on the “Settings” link in the “Appearance” section. From there, you can choose to display ads or not.
If you decide that you want to display ads, you’ll see a small window popup with the available advertisements. If you decide that you don’t want to display any ads, simply click the “X” in the upper-right corner of the window. This will close the popup and you’ll be back at your dashboard. Now, click on the “Reading” tab and then scroll down to “Article”.
2. Add This Code To Your Site:
Once you’re back at your dashboard, you need to add this code to the end of your site’s “header.php” file. This is the PHP code that handles your site’s layout and graphics. If you put this code on your site, you’ll be able to pull up your site’s source code in a new browser tab (ensure that you’re not logged into your WordPress account when you do this).
Now, scroll down to the very bottom of the “header.php” file and you’ll see this line of code:
?>$GLOBALS["tw_ adslot"] = "1";
This line of code sets your Ad slot to 1. Simply change the number 1 to what you want your Ad slot to be (for example, if you decide that you don't want to display any ads, just change the number to 0). Once you've set your Ad slot to whatever you want, scroll up a bit and you'll see this line of code:
3. Optional Step: Activate GEM In Your Aws Account
If you decide that you want to use a different ad network (google for the sake of this tutorial), you'll need to take an extra step. To do this, you'll need to go back to your Amazon AWS account and click on the "Gear" symbol in the upper-right corner of the screen. From here, you can choose to "Enable GEM" for this account or simply "Disable GEM." Once you've made this selection, you'll be able to browse to your WordPress site's settings again (from here, simply choose to "Activate GEM.")
Now that you've activated GEM in your Aws account, you can head back to your WordPress dashboard and choose to "Enable GEM" under the "General" section.
4. Test To See If Everything Is Working Fine
Once you've activated GEM in your account, you can go back to your WordPress dashboard and test to see if everything is working fine. To do this, click on the "Reading" tab and then scroll down to "Article."
Next, you'll want to choose the "XML" export from here. Simply press the "XML" button in the bottom-right corner of the popup window to save the article in XML format. Now, open up your favorite XML editor and you'll see the source code for your article in the same format as you see it on your WordPress dashboard. If everything is OK, save the XML file and you're good to go!
Well, that's pretty much everything you need to know about blocking ads on a WordPress site. If you decide that you still want to display ads but don't want to deal with the technical aspects of getting them removed, you can use a service like AdGoo. AdGoo is a free and easy-to-use ad blocker for WordPress sites. All you have to do is install the plugin to start blocking ads on your site.
The process of blocking ads on a WordPress site is fairly simple but, like most things, it takes a bit of practice to get right. Hopefully, this tutorial helped you understand and overcome the pitfalls of showing ads on a WordPress site. When building a brand new site, it's important to get the technical aspect of creating a WordPress installation right the first time to avoid any headaches in the future. If you have any other questions, feel free to leave a comment below! Happy blogging