Add Google Adsense to Blogger Header (Above the Title)


In the past tutorials ( See: Soc ial Media Buttons beside Adsense ads Adsen se inside Blogger Header ) i've shared several tricks for Adsense ads placement that may help you to increase your adsense earnings. Now, i will show you how to add Google Adsense above your header, for instance just above the title of your Blogger blog. This can be done by adjusting your template to give you the option of adding more than one widget to the header area.

Add a new element to Blogger header

1. If you are using the old Blogger interface: 

  • Go to Dashboard - Design - Edit HTML - (make a backup) Expand Widget Template 

If you are using the new Blogger interface: 

  • Go to Dashboard - Template - Edit HTML - Proceed - (make a backup) Expand Widget Template 

2. Next try to find (CTRL + F) this piece of code:

<div id='header-wrapper'>

...if you can't find that one, search for this one:

<div class='region-inner header-inner'>

3. Immediately after one of these lines, you'll see this code:

<b:section class='header' id='header' maxwidgets='1' showaddelement='no'>

4. Replace the values in red like in this example below:

<b:section class='header' id='header' maxwidgets='3' showaddelement='yes'>

5. Save the Template.

Adding the Adsense ad unit above the Blogger header

1. Navigate to Design > Page Elements and view the new option to add a gadget to the header area



2. Click on Add a Gadget link and select the Google Adsense gadget.

Choose the type of ad unit you want. For this example I chose a new linked 728x15 ad unit from the dropdown format menu for an AdSense ad that would sit above the blog title. Configure colors if necessary. Color blending is usually done automatically by Blogger according to the color schema of your template.

3. Click Save

Now View your Blog to see your new Google Adsense unit. If all is going well, your new AdSense ad unit should appear something like in the image below:



This is a very good Adsense placement, i'm sure you're gonna like it

If you have a any questions, please feel free to ask below.

How to add an image next to Blogger Post Title

blogger posts, gadgets for blogger, blogger tutorials

It has often been said that a picture says a thousand words, so in the struggle for the attention of the reader, we can add a picture or an icon to our post title, as I have put in the title of the post in the screenshot above.

Show Image Icon before Blogger Post Title

Step 1:

First thing first you have to do is to prepare an image. After that you'll need a direct link to an image before you proceed further. You can upload it to tinypic.com and copy the URL located in the Direct Link for Layouts box. Also, make sure your image is sized appropriately. You don't want to see a huge image next to your post title.

Step 2: Go to Dashboard - Template - Edit HTML - Proceed if needed
    Step 3. Click anywhere inside the code area to find (using CTRL + F) the following code:
    <b:includable id='post' var='post'>
    Step 4. After you found it, click on the left arrow next to it to expand the widget's code


    Step 5. Then delete it until you reach to <div class='post-header'>:
                  <b:includable id='post' var='post'>
      <div class='post hentry' itemprop='blogPost' itemscope='itemscope' itemtype='http://schema.org/BlogPosting'>
        <b:if cond='data:post.firstImageUrl'>
          <meta expr:content='data:post.firstImageUrl' itemprop='image_url'/>
        </b:if>
        <meta expr:content='data:blog.blogId' itemprop='blogId'/>
        <meta expr:content='data:post.id' itemprop='postId'/>

        <a expr:name='data:post.id'/>
        <b:if cond='data:post.title'>
          <h3 class='post-title entry-title' itemprop='name'>
          <b:if cond='data:post.link'>
            <a expr:href='data:post.link'><data:post.title/></a>
          <b:else/>
            <b:if cond='data:post.url'>
              <b:if cond='data:blog.url != data:post.url'>
                <a expr:href='data:post.url'><data:post.title/></a>
              <b:else/>
                <data:post.title/>
              </b:if>
            <b:else/>
              <data:post.title/>
            </b:if>
          </b:if>
          </h3>
        </b:if>
    The code to be deleted:


    Step 6:

    Paste the following code in the place of the deleted code in Step 5:
    <b:includable id='post' var='post'>
      <div class='post hentry' itemprop='blogPost' itemscope='itemscope' itemtype='http://schema.org/BlogPosting'>
        <b:if cond='data:post.firstImageUrl'>
          <meta expr:content='data:post.firstImageUrl' itemprop='image_url'/>
        </b:if>
        <meta expr:content='data:blog.blogId' itemprop='blogId'/>
        <meta expr:content='data:post.id' itemprop='postId'/>

        <a expr:name='data:post.id'/>
        <b:if cond='data:post.title'>
          <table><tr>
            <td class='posttitle'>
               <img src='IMAGE-URL'/></td>
            <td><h3 class='post-title entry-title' itemprop='name'>
          <b:if cond='data:post.link'>
            <a expr:href='data:post.link'><data:post.title/></a>
          <b:else/>
            <b:if cond='data:post.url'>
              <b:if cond='data:blog.url != data:post.url'>
                <a expr:href='data:post.url'><data:post.title/></a>
              <b:else/>
                <data:post.title/>
              </b:if>
            <b:else/>
              <data:post.title/>
            </b:if>
          </b:if>
          </h3>
            </td>
            </tr></table>
         
          <style>
            h3.post-title {
              margin: 0px !important;
            }
          </style>
       
        </b:if>

    Step 7:

    Replace the IMAGE-URL text in blue color from above with the URL address of your image (the one that you've gotten from Step 1).

    Step 8: Save the Template and that's it! Enjoy :)

    How to remove Blogger Picture/Image Shadow and Border

    If you want to get rid of those annoying shadows and borders around blogger images, then follow the next steps (see the difference in the screenshot below):
    If you are using the old Blogger interface:
    • Go to Dashboard - Design - Template Designer - Advanced - Add CSS - paste the following code - Press enter after the last character of the last line } - Apply to Blog.

    If you are using the new Blogger interface:
    • Go to Dashboard - Template - Customize - Advanced - Add CSS - paste the following code - Press enter after the last character of the last line } - Apply to Blog.

    .post-body img, .post-body .tr-caption-container, .Profile img, .Image img,
    .BlogList .item-thumbnail img {
      padding: none !important;
      border: none !important;
      background: none !important;
      -moz-box-shadow: 0px 0px 0px transparent !important;
      -webkit-box-shadow: 0px 0px 0px transparent !important;
      box-shadow: 0px 0px 0px transparent !important;
    }

    Now your blogger images should appear without any border or shadow. Cheers!

    Update:

    If the above method doesn't work for you, do the following:

    - Go to Blogger's Dashboard > Design (Layout) > Edit HTML
    - Thick the "Expand widget templates" checkbox;
    - Search (CTRL + F) for the following code:

      border: 1px solid $(image.border.color);

      -moz-box-shadow: 1px 1px 5px rgba(0, 0, 0, .1);
      -webkit-box-shadow: 1px 1px 5px rgba(0, 0, 0, .1);
      box-shadow: 1px 1px 5px rgba(0, 0, 0, .1);

    - Delete it and Save your template.

    Replace Older, Newer And Home Blogger links with an image or text

    Newer Post, Home and Older Post are links that appear on the bottom of the posts. When a visitor click on one of these links, they will take him to the page with the list of your previous posts.
    The number of the posts on these pages will be the same as the number of the posts on your main page.


    What we can do:

    A. Change the text of Newer, Older, Home links
    B. Place a picture beside them (a small icon, arrow, or whatever...)
    C. Add an image instead of the links

    So let's start customizing them...

    1. Log in to your Blogger Dashboard, go to Template > Edit HTML

    2. Click anywhere inside the code area and find - using CTRL + F keys - the following code:
        <b:if cond='data:newerPageUrl'>
          <span id='blog-pager-newer-link'>
          <a class='blog-pager-newer-link' expr:href='data:newerPageUrl' expr:id='data:widget.instanceId + &quot;_blog-pager-newer-link&quot;' expr:title='data:newerPageTitle'><data:newerPageTitle/></a>
          </span>
        </b:if>

        <b:if cond='data:olderPageUrl'>
          <span id='blog-pager-older-link'>
          <a class='blog-pager-older-link' expr:href='data:olderPageUrl' expr:id='data:widget.instanceId + &quot;_blog-pager-older-link&quot;' expr:title='data:olderPageTitle'><data:olderPageTitle/></a>
          </span>
        </b:if>

        <a class='home-link' expr:href='data:blog.homepageUrl'><data:homeMsg/></a>
    Or find in this code the following fragments which corresponds to each page links
    • <data:newerPageTitle/> represents Newer Posts link
    • <data:olderPageTitle/> represents Older Posts link
    • <data:homeMsg/> represents Home link

    Now change these fragments of codes as it follows:

    A. Change the text of Newer Posts, Older Posts and Home Links


    You need to REPLACE following parts in original code with ANY TEXT you like:
    • replace <data:newerPageTitle/> with, for example NEXT POST 
    • replace <data:olderPageTitle/> with, for example PREVIOUS POST
    • replace <data:homeMsg/> (only the first one) with, for example HOMEPAGE

      B. Place a picture beside Newer Posts, Older Posts and Home links


      Add the below code just at the beginning of each of the colored fragments of codes from step 2.
      <img src="URL Address"/>

      So it should look like this:
      <img src="URL Address"/><data:newerPageTitle/>
      Note: Replace URL Address text with the url address of the image you want to appear

      C. Replace Older Posts, Newer Posts and Home links with an image/picture


      You can place any kind of picture you want All you have to do is use this code for the pic:
      <img src="URL ADDRESS"/>
      ...just replace URL ADDRESS, with the URL of your hosted picture
      ...and in code, REPLACE the original link code for text with picture code
      • replace <data:newerPageTitle/> with the pic for newer (next) posts
      • replace <data:olderPageTitle/> with the pic for older (previous) posts
      • replace <data:homeMsg/> (only the first one) with the pic for homepage
      Screenshot
      blogger tricks, older posts, newer   posts

      3. That's it! Preview and Save the Template.

      How to change Blogger "Post A Comment" Message

      In this tutorial i will show you how to replace the 'Post A Comment' text that appears above the comment form with an image. Also, I will make available to you a few cool images or you can add your own image if you like... so let's get started.



      How to replace Post a Comment with an image

      To replace  "Post A Comment" message in your Blogger / Blogspot blog follow the next steps:

      Step 1. Log in to Blogger, go to your Blogger Dashboard >> Design >> Edit HTML

      Step 2. Tick the "Expand Widget Templates" checkbox.

      Step 3. Now search (CTRL + F) for the code marked in red:

      <a expr:href='data:post.addCommentUrl' expr:onclick='data:post.addCommentOnclick'>
      <data:postCommentMsg/></a>


      ...and for this one too:

      <h4 id='comment-post-message'><data:postCommentMsg/></h4>

      Step 4. Replace <data:postCommentMsg/> with one of the below images codes:


      <img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh5rCLJgUnQntWB4BCmSIHCp_Bi8d9Aw60t5LYgU2Xt-ol6OM1Fk2BxhvjzvX2CgnHM8dcuLxuKNSigevmWg0V0CHITS5ivGhGUd52Be6tf8_0sw36T7TILwnTvwTfqUDbRn9idE9XM13I/s1600/leave+a +comment.png" />


      <img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWRRbYv4xt6HIE80REq_E4ap5eL-Nk8PcB9xr4Uzs-BTHTKOEhCKJ4W9WngMuc_qokLsgkdxY3rQU_8Nm75Lgyowj6y7EGtgvmWjv5Y2vVkr6fOmJX0DdIIQZtIcCcefVpWC6oyNy_b6M/s1600/Post+a+ comment+blogger.png" />


      <img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWxJchgff1c5tHIWS9iNojqfnNok9uI6EBjNWngjjJPXZ8zsE2CxfiNGaoUsdgV2acgOVjhH8fEPWTOanl9wlDo37LNLgxnhAI-d8Kk2mL786OdHZbK9fLK4aRczljYVHIB8iOIUHmdT0n/s1600/animate d+comment+arrow.gif" />


      <img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEibpXQ2SERazcNIyVnJsFRYEpD2sCYFIW8FBBtNMEXGx6yxZOpHOW7V3GMq-M2Z7PEBPdrN2yf516uMQ-mWg9NWDkUJjMk6tPHw07Z4E3YssR_GsY-52m4k0GnMR8aZsxoBTYkITULAKvGy/s1600/leave+a +comment2.png" />


      <img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiFqMGr_InIA5lJh18eTR_hKaOogLDlV-fbdCJllVASXL3folWu0mK0eq4BTYyPPD4IuCIYoixq-rQFyQWThrIjL0Trgysw7KBI35Irjw6emyuR1Iaj_nvmaseaVT30tDMYn7hQWj4-loRU/s1600/comment .gif" />

      You can use your own image instead. Just upload your image on Blogger, switch to Edit HTML tab, copy the image code and replace <data:postCommentMsg/> with your code.

      UPDATE! Step 5. The first steps will replace the text only when there are no comments available. To show the image each time new comments are added, we should add the code of the image we want to appear after the 4th of the below code (search 4 times for it):

      <p><data:blogCommentMessage/></p>

      Step 6. Save Your Template.


      Thats it! I hope you like your new comment form !

      How To Remove Blogger Attribution Gadget

      The Attribution gadget is the gadget in the footer that says "Powered By Blogger". If you have tried to remove this then you may of noticed this gadget is locked into you blog. To unlock it, follow the next steps:
      blogger attribution, blogger hacks, powered by

      Step 1. Log in to your Dashboard, go to Template > Edit HTML

      blogger tricks, blogger hacks,

      Step 2. Check the "Expand Widget Templates" box


      Step 3. Search (CTRL+ F) for this code:

      <b:widget id='Attribution1' locked='true' title='' type='Attribution'>

      Step 4. Replace true with false

      Step 5. Click on the Save Template button

      Now attribution gadget is unlocked and it can be removed. Just go to:

      • Layout and click on the edit link from Attribution gadget:
      • Click on the Remove button - as you can see in the screenshot below:
      That was all !

      How to add a gadget/widget inside your Blogger Blog header

      Maybe you have seen that many blogs have AdSense Units or other ads and widgets in the header section of the blog, the most popular format being the AdSense 468x60 ad unit - see in the screenshot below:

      But how we can add something inside blogger header - be it a Adsense unit, a search bar, social media buttons or a widget? By simply adding a section in the header. First off, to give space for the extra gadget to fit in, our blogger header should be resized.

      A. Resize blogger header

      Step 1: Go to Blogger Dashboard > Template > Edit HTML and backup your template

      Step 2: Click anywhere inside the code area and open the search box by using the CTRL + F keys:
      adsense,   blogger tricks, blogger widgets

      Step 3: Search for this piece of code:
      /* Header
      ----------------------------------------------- */
      Note: If you can't find it, search only for the first line:
      /* Header

      Screenshot:
      blogger gadgets, blogger widgets, blogspot tricks

      Step 4: Replace it with this code:
      /* Header
      ----------------------------------------------- */
      .header-left{
      display: inline-block;
      height: 35px;
      width: 350px;
      float: left;
      }
      .header-right {
      display:inline-block;
      float:right;
      }

      Change the pixels in red with the image's height and width of your blogger header and change float: left; to float: right; if you want to change the position of your logo.

      Step 5: Find the below code:
      <b:section class='header' id='header' maxwidgets='1' showaddelement='no'>

      Step 6: Replace it with:
      <b:section class='header header-left' id='header' maxwidgets='1' showaddelement='no'>

      Now "Preview" your template, you will find that the background color of Blogger's header is not visible or it's missing. To bring it back, you need to add some more snippets:

      Step 7. Find the following code:
          </div>
          </div>
          <div class='header-cap-bottom cap-bottom'>
            <div class='cap-left'/>

      Step 8. Just above it, paste this:
      <div style='clear:both;'/>

      Note: if you can't find the code from step 7, search for this instead:
            <b:include name='description'/>
          </div>
        </b:if>
      </b:includable>
      </b:widget>
      </b:section>
      ... and paste the code from step 8 just below it.

      B. Add extra gadget/widget section to Blogger Header

      Let's go one step forward and add an extra gadget section within Blogger header in new template designers.

      Step 9. Just below the code from step 8, paste this codejust before/above it:
      <b:section class='header-right crosscol' id='header-right' maxwidgets='1' showaddelement='yes'/>

      Step 10. Now find:
      ]]></b:skin>

      Step 11. Paste just above it, this CSS code:
      .header-right {
      display:inline-block;
      float:right;
      width:400px;
      }

      Change the width that is marked in red color. Increase or decrease the pixels according to your needs and positioning new header section.

      Step 12. Save the Template.

      Step 13. Now all you have to do is to go to Layout and Add a Gadget to the newly created extra header section in Blogger.

      widgets for blogger, blogger tricks

      The widget now should appear side by side.

      If you have any questions or need some help, leave a comment below. 
      Newer Posts Older Posts
      © Copyright Downloads free zone
      Back To Top