• 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
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

  • Nginx WordPress Installation Guide (All Steps)

    This is a Full Nginx WordPress Installation Guide With All the Steps, Including Some Optimization and Setup Which is Compatible With WordPress DOT ORG Example Settings For Nginx.

  • Changing Data With cURL for OpenStack Swift (HP Cloud CDN)

    Changing Data With cURL For Object is Quite Easy in OpenStack Swift. Here Are Examples With HP Cloud CDN To Make it Clear. Official Examples Are Bad.

  • OpenShift OctoPress Auto install Script

    OpenShift OctoPress Auto install Script is an Advanced Script to Run OctoPress on Free OpenShift PaaS Practically Without Any Knowing Ruby or Git.

  • OpenStack Swift & HPCloud CDN PHP Bindings : Basics

    Here is the basics of OpenStack Swift & HPCloud CDN PHP Bindings for the WordPress Plugin developers and those who works with PHP based CMS.

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

  • PowerAmp Settings for Higher Sound QualityOctober 4, 2023
  • Affordable Earphone/IEM for Audiophiles: HiFiMan RE-400 WaterlineOctober 2, 2023
  • What is Hardware Security Module (HSM)September 30, 2023
  • Transducer Technologies of HeadphonesSeptember 28, 2023
  • What is Analog-to-Digital Converter (ADC)September 27, 2023
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