• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here: Home » Codes and plugins for placing Advertisement banners in WordPress blogs

By Abhishek Ghosh April 30, 2011 2:06 pm Updated on October 17, 2014

Codes and plugins for placing Advertisement banners in WordPress blogs

Advertisement

It is very important to rightly place the Advertisement units in your WordPress blog in order to get the clicks. If there is no clicks, despite having thousands of visitors; you will not able to make any money, whether it is CPM based or PPC based Advertisement system.

The PHP codes of WordPress along with the experience of messing up the theme if the Advertisement codes (like that of Google Adsense, Chitika  or Technorati media) make users think that WordPress is very difficult to place the Advertisement units.Codes and plugins for placing Advertisement banners in WordPress

Not at all. Yes, if you directly copy-paste the Advertisement codes of Google Adsense, Chitika or Technorati media, some themes got broken, but in majority of the cases the reason is the position of code ending (of the Theme) has not been chosen rightly.

Advertisement

---

Today, we will selectively show the places where people usually put the Advertisement codes.

 

Sidebar

 

We guess there is no problem with sidebar. Still, for the starters, Just drag a new Text widget and paste the code you wish to show. Do not forget to save it.

 

Header

 

We will discuss case by case.

  • Few theme has similar widgets like sidebar that allows to add the Advertisement units. Then it is very easy to add a text widget and paste the Adsense code (or other Advertisers code).
  • You can manually add the Advertisement code after proper wrapping (read on) after end of the codes (code of the theme) in the header with ” >” in Theme editor and save it. Here is a screenshot:
  • Codes and plugins for placing Advertisement banners in WordPress blogs

Footer

 

Exactly the same for footer as we said about header.

 

Adding advertisement code in single page, single post, Home and tags and categories pages and comments

 

There is an excellent plugin named Post Layout that will do everything for you.  Just install it and the option page will allow you to add where you want too add the Advertisement code. It will make your blog a money making machine for free. You can add anything, any HTML code anywhere you need with this plugin other than only injecting Adsense code. There is a pro version too those who want to fetch the best out of your blog.

 

Where is your Advertisement wrapping code for aligning to left or right?

 

Here is the wrapping code for your Advertisement unit, it will align the unit to right; if you need to align left, change the word right to left:

 

&lt;div style="float:<span style="color: #ff0000;">right</span>;"&gt;<span style="color: #3366ff;">PASTE YOUR ADVERTISEMENT UNITS CODE HERE AND DELETE THIS LINE</span>&lt;/div&gt;

 

Adding advertisement code in single post along with a space with the text

 

Simply define a margin in the above code:

 

&lt;div style="float:right; <span style="color: #ff0000;">Margin: 15px;</span>"&gt;<span style="color: #3366ff;">PASTE YOUR ADVERTISEMENT UNITS CODE HERE AND DELETE THIS LINE</span>&lt;/div&gt;

Increase or decrease the margin in pixel as per your need.

 

Adding two advertisement units anywhere side by side

 

Very easy. Just use one with align left and another with align right; like this:

 

&lt;div style="float:left; Margin: 15px;"&gt;<span style="color: #3366ff;">PASTE YOUR ADVERTISEMENT UNITS CODE HERE AND DELETE THIS LINE</span>&lt;/div&gt;&lt;div style="float:right; Margin: 15px;"&gt;<span style="color: #3366ff;">PASTE YOUR ADVERTISEMENT UNITS CODE HERE AND DELETE THIS LINE</span>&lt;/div&gt;

This will place the two advertisement units to appear side by side. Do not forget the total width becomes: (width of two Advertisement units in pixels + 4 x margin in pixels). For example, with two 300 pixel width units and 15 pixel of margin it becomes (300 x 2 + 4 x 15) = (600 + 60 ) = 600 pixels width.
If your place can not afford it (say the place is 550 pixels width), one Ad unit will come down to the next line.

Signature

This Article Has Been Shared 827 Times!

Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to Codes and plugins for placing Advertisement banners in WordPress blogs

  • 100 Tips for Building and Maintaining a Successful Blog

    100 Tips for Building and Maintaining a Successful Blog is the 2500th article published on this website.Free Infographic is also included so that you print it.

  • Schema.org for WordPress : Advanced Tips for Genesis 2.0

    Schema.org for WordPress is nicely integrated by Genesis 2.0 but in terms of semantic complexity, it requires some advanced hand made tweaking.

  • 66 possible topics for your blog

    Here are some topics to write blogs, which are almost guaranteed to give you good ranking in search engine result pages for long run, if you do care about SEO.

  • Wrongs Done By Self Hosted WordPress Newbies

    Wrongs Done By Self Hosted WordPress Newbies has probably never listed by any Advanced WordPress forum user or Codex user.We frequently find some common errors.

  • AdSense Asynchronous Ads with Responsive Design

    AdSense Asynchronous Ads with Responsive design is a quite difficult to manage or implement. Here are some ideas which might help you for HTML5 website.

Additionally, performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Comments

  1. AvatarJulianne says

    July 20, 2011 at 9:09 am

    Oh wow, thank you so much for this. I have been asking all over the web how to get two 125 x 125 ads to sit side by side in my side bar. They sit one under the other. And I am not conversent enough with coding and such to understand what I did wrong.
    Silly me finally remembered Google and found your website.

    The rest of the information is also very helpful for me too. Your explanations are great and easy to understand.
    Thank you again from a relative newbie to WordPress.

  2. AbhishekAbhishek says

    July 20, 2011 at 10:09 am

    You are welcome Julianne. I am glad you got what you were searching for. Thanks to Google!

    If you need any explanation or detailed tuts on WordPress, SEO, Windows or Mac; do not hesitate to ask me. In fact many tuts written in this website are based on the questions asked by the regular visitors!

  3. AvatariPad Accessories says

    July 23, 2011 at 2:19 am

    Thank you very much Abhishek. I have also been searching the web for info on how to add a banner in my header and your simple instructions helped me do it. The other articles on the web are too difficult to understand and I wasted lots of time trying to understand them. Thanks again.

  4. AbhishekAbhishek says

    July 23, 2011 at 6:34 am

    Thank you dejagib for your comment. I am glad that it has helped you.

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • What is Voice User Interface (VUI) January 31, 2023
  • Proxy Server: Design Pattern in Programming January 30, 2023
  • Cyberpunk Aesthetics: What’s in it Special January 27, 2023
  • How to Do Electrical Layout Plan for Adding Smart Switches January 26, 2023
  • What is a Data Mesh? January 25, 2023

About This Article

Cite this article as: Abhishek Ghosh, "Codes and plugins for placing Advertisement banners in WordPress blogs," in The Customize Windows, April 30, 2011, February 1, 2023, https://thecustomizewindows.com/2011/04/codes-and-plugins-for-placing-advertisement-banners-in-wordpress-blogs/.

Source:The Customize Windows, JiMA.in

PC users can consult Corrine Chorney for Security.

Want to know more about us? Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
Cookie SettingsAccept
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT