The Affiliate Marketing and Money Making Blog

Your Ad Here
Get Chitika | Premium
Showing posts with label add banner. Show all posts
Showing posts with label add banner. Show all posts

How to Add AdSense Ad Units or Affiliate Banners Above the Header of Your Blogger Blog

Bookmark and Share

 

A lot of people who are interested in monetizing their Blogger blog want to know how they can add a Google AdSense ad unit or an affiliate banner above the header of their blog. Therefore I am going to show you in this post how you can place an affiliate banner or Google AdSense banner/ad block right at the top of Blogger blogs.

Setting up Blogger so that ad units can be placed above the header requires the addition of a snippet of code to the template of your Blogger blog. This tutorial is aimed at beginners and newbies to Blogger and blogging. The adjustments can be performed in less than 5 minutes.

adsense above blogger header bearb

How to Add a Google AdSense Ad Unit or an Affiliate Banner Above the Blogger Header

1. Login to Blogger if not already logged in.

2. Navigate to Layout --> Edit HTML.

3. As a precaution back up your template by downloading the full template to your computer.

4. Check the Expand Widget Templates box.

5. Search for the following line of code which in most templates will be directly after the <body> tag (The easiest way to do this is by pressing Ctrl + F and then entering the line into the search box):

<div id='outer-wrapper'>

6. Paste the following block of code directly after this line to create a new section:

<div id='topads-wrapper'>
<b:section class='topads' id='topads' preferred='yes'/>
</div>

7. Next you need to add some CSS styling to the newly created section. Please note that the banner will be centered by default. If you want to change the alignment for some reason or other you just need to change the CSS styling.

Place the following code in the head section of your template before these lines:

]]></b:skin>
</head>

The code to be inserted:

/* Top Ads
----------------------------------------------- */
#topads-wrapper {
margin: 0;
padding: 0;
position: relative;
text-align: center;
width: 100%;
}
#topads {margin: 0; padding: 0;}
#topads .widget {margin: 0; padding: 5px 0;}

8. Click on Save Template.

9. Now go to Layout --> Page Elements.

10. You will find that you can add a gadget to a new section above your header and directly below the navbar.

How to Add a Google AdSense Ad Unit

Click on Add a Gadget and choose your preferred Google AdSense ad unit. The best choices for this position are the 728x90 Leaderboard, the 468x60 Banner, and the 728x15 or 468x15 Horizontal Lines. For best results choose either the Blend Template or Match Template option. Do not forget to save when you are done.

How to Add an Affiliate Banner

If you´d rather add an affiliate banner, click on Add a Gadget and choose the HTML/Javascript widget from the list of gadgets available in the menu. You then need to paste the affiliate banner code into the content box in the popup window and save your changes. Click on View Blog and you will see your new banner displayed above the header of your Blogger blog. For more detailed instructions about adding affiliate banners to a Blogger blog please refer to my article How to Add an Affiliate Banner to the Blogger sidebar.

Tips and Troubleshooting

a) If you wish to add more than one widget to the section above the header you will need to change the template code from:

<b:section class='topads' id='topads' preferred='yes'/>

to:

<b:section class='topads' id='topads' maxwidgets='3'>

This change to the template will allow you to add up to 3 widgets above the Blogger header.

b) If you wish to display your Google AdSense ad unit only on the post page and not the home page then you need to add an <b:if> statement. For instance go to Layout -- > Edit HTML after you have created your ad unit and you will see that the code you inserted is now different. That is because the Adsense widget code has been added. You are likely to have something that looks like this:

<b:section class='topads' id='topads' preferred='yes'/>
<b:widget id='AdSense7' locked='false' title='' type='AdSense'>
<b:includable id='main'>
<div class='widget-content'>
<data:adCode/>
</div>
</b:includable>
</b:widget>
</b:section>

By inserting the code within an <b:if> statement you will be able to control where it appears. To have the Google AdSense ad unit only display on the post page you need to add the following lines of code:

<b:section class='topads' id='topads' preferred='yes'/>
<b:widget id='AdSense7' locked='false' title='' type='AdSense'>
<b:includable id='main'>
<div class='widget-content'>
<b:if cond='data:blog.pageType == "item"'>
<data:adCode/>
</b:if>
</div>
</b:includable>
</b:widget>
</b:section>

In this tutorial I have shown you how to create a new section above the header of your Blogger blog and how to add a Google AdSense ad unit or an affiliate banner to that spot. In addition I have shown you how to place the aforementioned Google AdSense unit or banner only on the post page rather than on every page of your blog. If you have any questions please leave a comment.

Good luck!

 

Related articles:

How to Add an Affiliate Banner to the Header of Your Blogger Blog

How to Add an Affiliate Banner to the Sidebar of your Blogger Blog

Better Google AdSense Placement for Blogger

 

How To Add An Affiliate Banner To The Header Of Your Blogger Blog

Bookmark and Share

 

If you are interested in making money from your blog, chances are you will want to add an affiliate marketing banner to the header of your Blogger blog. Doubtless you have seen plenty of websites sporting advertising banners which are creating revenue for the author by way of banner clicks. With a small amount of rather simple tweaking to your Blogger template you, too, will be in a position to boost the revenue earning capacity of your Blogger blog.

ad-banner-to-blogger-header

How to Add an Affiliate Banner to the Header of Your Blogger Blog

There are a number of good places for a banner or an ad block, but the header of a blog is by far the most prominent area. Unfortunately, Blogger does not provide an easy facility for inserting an advertising banner into the header of your blog. To manage this you have two choices:

1. Use a custom template that comes banner ready. (There are a number of templates out there with this feature built in.)

2. Customize your existing standard Blogger template.

This post focuses on choice # 2 and shows you how to go about manually editing your template to add an affiliate banner ad. By the end of this tutorial you will have the necessary knowledge to insert a banner into the header of your Blogger blog. The level of difficulty for the necessary additions is easy to intermediate, so pretty much everybody should be able to get this done in a matter of minutes. You will be adding a few lines of code to your template plus pasting in the affiliate marketing banner code.

For the purposes of this example I will be using a 468x60 banner. This specific method of banner insertion has been tested on the following standard Blogger templates:

Herbert
Rounders
Denim
Thisaway
Son of Moto
Sand Dollar

It will also work on most custom templates that do not already come with an advertising banner in the header built in.

How to Insert an Affliate Marketing Banner into a Blogger Blog

1. Login to Blogger.com and navigate to Layout --> Edit HTML.

2. On the Edit HTML page you will see the option to back up your template by downloading it to your system. I strongly advise that you take this opportunity to backup as you are about to make a change to your template where you may not be able to restore it if anything should go wrong.

3. Once you have backed up your template place a check mark in the Expand Widget Templates box.

4. Search your template and locate the following lines of code within the header section of the template (note you can search by using CTRL + F and entering <b:includable id='main'> into the search box):

<b:includable id='main'>
<b:if cond='data:useImage'>

5. Now insert the following 2 lines of code directly below <b:includable id='main'> and before <b:if cond='data:useImage'>:

<div class='ads'>
</div>

6. Place your merchant affiliate code between the lines of code you just inserted. You will need to copy the code from the affiliate program provider to your template (better still, copy it into a program like Word , piece the parts together, and then copy and paste the complete code into your template). If you have not as yet signed up for an advertising program such as Linkshare or Chitika you will need to do so before you proceed. Alternatively, you could use my banner code in the meantime to test this banner and later substitute it for your own.

<div class='ads'>PLACE YOUR BANNER CODE HERE
</div>

7. Review the code you have entered. If you have followed the steps above you will now have code that resembles this (Your affiliate code will of course be different):

<b:includable id='main'>
<div class='ads'>

<a href=https://chitika.com/publishers.php?refid=********** style="text-decoration: none;"><img src="http://scripts.chitika.net/eminimalls/logos/468x60.png" border="0" height="60" width="468" alt="Get Chitika Premium" title="Get Chitika Premium" /></a>

</div>
<b:if cond='data:useImage'>

8. When you are sure you have correctly inserted the code into the template scroll up until you find this line in your template:

]]></b:skin>

9. Immediately before this line add the following lines:

/* Header Banner
----------------------------------------------- */
#header .ads{width:480px; height:80px; float:right; padding:20px 0px 0px 0px}

10. Click on Save Template.

11. Click on View Blog to view your new banner.

Troubleshooting

  • If you need to change the alignment or padding around the banner to your own specifications you will need to change the CSS stylesheet code entered in Step 9
  • You can change the alignment of the banner by changing float:right; to float:left; if you would like your banner to left align.
  • If you change your template for another standard Blogger template you may need to re-enter the code in Step 9.
  • Sometimes the code you get from your affiliate may be incomplete. For instance, some of Chitika´s banner codes are missing the specifications for height and width. In this case you will have to enter height=".." and width=".." yourself.
  • If you change the size of your banner you will have to change the specifications of the code you inserted in step 9 as well.

In this post you have learned how to insert a 468x60 affiliate marketing banner into the header of your Blogger blog and will now be well on your way to earning revenue from multiple income streams.

Good luck!

 

Related Article:

How to Add an Affiliate Banner to the Sidebar of Your Blogger Blog

 

How to Add an Affiliate Banner to the Sidebar of Your Blogger Blog

Bookmark and Share

 

Quite a lot of people are interested in making money from their blog(s) and for this reason want to learn how to integrate affiliate banners into their Blogger blog. In this post, which is the first of a series, I shall show you how to place a banner (or, in fact, any number of banners) in the sidebar of your Blogger blog. Although this tutorial is primarily aimed at newbies, but it may offer helpful tips for anyone interested in making money by adding an affiliate banner to the sidebar of their Blogger blog.

How to Add an Affiliate Banner To the Sidebar of Your Blogger Blog

Adding an affiliate banner to the sidebar of your Blogger blog is fairly easy. Just follow these step by step instructions:

1. Join an affiliate marketing program like Clickbank, Commission Junction or Chitika and select your merchant or the products you want to advertise.

2. Decide on the size of the merchant banner or banners you wish to display in your sidebar. Make sure that whatever size you choose will fit into the sidebar space - otherwise your banner ad may not be displayed properly on your blog. Typical sizes suitable for sidebars are:

  • small rectangular banners 125x90, 125x125 or 150x150
  • square banners 200x200 (if space allows)
  • short vertical banners 120x200
  • column style skyscraper banners 120x600 or 160x600

3. After choosing your banner you will be presented with the merchant code to display the banner. Right click to select all and right click again to copy the code (Ctrl + C) to the clipboard of your computer.

4. In a new tab or window login to Blogger and navigate to Layout --> Page Elements.

5. Click on Add a Gadget in the Sidebar. If you are using a customized template you may have 2 or more different sidebars, so decide which of them you want the banner ad to be displayed in.

6. Select the HTML/Javascript widget from the Add a Gadget menu.

7. Place your mouse in the content box of the Configure HTML/Javascript widget and right click. Choose paste (Ctrl + V) to insert the merchant code of your banner ad into the content box.

8. In the title box add a Title like Sponsored Ads if you wish, otherwise leave it blank.

add_banner_sidebar

9. Click on Save.

10. Use Blogger's drag and drop feature to pick up your new HTML/Javascript widget and position it where you want your banner ad to show up in your sidebar.

11. Save the Layout.

12. Click on View Blog to see your new banner ad in action.

How to Add Space Between Your Banner Ads

If you want more space between your banner ad and the previous widget you can add <p> before the code you inserted in the HTML/Javascript widget. If you need even more add another <p>

How To Center Your Advertising Banner

If you want to center your banner ad insert <center> before the merchant code and </center> after it.

How to Add More Than One Banner

If you want to add more than one banner ad to the same widget you can do that by pasting the code for the second banner ad below the first lot of code. If you want some white space between the banners ads insert <p> between each block of code.

In case of trouble

Your Banner Is Not Displayed

Your banner ad should appear right away. If your banner ad is not displayed at all then there is a problem with the widget you have just created. Retrace your steps, making sure you have inserted all of the code.

Only a Placeholder for the Banner Is Displayed

If you see a placeholder but no ad is displayed then the affiliate website may be off line or there may be a problem with the code in some way. Go back and make sure you copied all of the code correctly. (Sometimes the / is missing at the end of the code. Remember: All HTML code commands must be closed with a corresponding command: <a> with </a> and so on. The providers of widget and affiliate codes sometimes forget to do this.)

 

In this post I have shown you how to add an affiliate marketing banner to the sidebar of your Blogger blog and provided solutions for two of the most common problems that you may encounter. In upcoming posts on banner advertising I´ll show you how to place banners in a variety of other spots on your blog. So why don´t you bookmark this site so you can return easily?

Good luck!



Related article:

How To Add An Affiliate Banner To The Header Of Your Blogger Blog

H2U8RVTZETHA