19 Jan 2012

Add Image to Post Title in Blogger

[caption id="attachment_322" align="aligncenter" width="558" caption="Before"][/caption]

[caption id="attachment_325" align="aligncenter" width="556" caption="After"][/caption]

It has been a little while since I have done a Blogger tutorial so today I'm showing you how to add an image to your Blogger post title. It is actually pretty simple when you know how. So let's get started.

First of all you need to make sure your image is the correct size. I'd advise an image size of 40x40 px. When that's done you'll need to upload it to Photobucket and grab the direct link.

 



 

Next log into Blogger and navigate to Dashboard>Template>Edit HTML>Proceed>Expand Widget Template.

Now find the following (highlighted) lines and delete them.

 



 

Paste the following code where we just deleted the above code from:

 

<b:includable id='post' var='post'>

  <div class='post hentry'>

    <a expr:name='data:post.id'/>

    <b:if cond='data:post.title'>

    <table><tr>

     <td class='ssybyposttitle'>

      <img src='yoururl'/></td>

     <td><h3 class='post-title entry-title'>

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


Remember to replace 'yoururl' with the direct link of your image.

Hit Save.

That's all there is to it you now have a post title that really stands out from the crowd.

As always leave a comment if you have any questions.

Related Posts:

  • Free Download - Beautiful, Creative Blog HeadersA big purpose of this blog is to help other bloggers create unique lookinand beautiful blogs. The header area of a blog is the MOST important aspect of your blog's design. It is the first part of your blog that visitors see o… Read More
  • Add Related Posts Widget to Bottom of Posts - Blogger It is well known that adding a related posts widget to the bottom of your posts increases pageviews and lowers your bounce rate. Link Within is great for this as it adds a thumbnail and is super easy to add to your blog… Read More
  • 5 Stylish but Functional Laptop BagsI may be a lover of tech but that doesn't mean I don't crave style too. So let me introduce you to five stylish laptop bags for transporting your laptop out and about in style. This guide has something for every budget and in… Read More
  • Another Free Download - Cute Post DividersIm really spoliling you today as I'm releasing my 3rd free download in 24 hours. This time I'm offering you free post dividers to brighten up your blogs. These are quite cute and kitsch. If your not sure how to install them f… Read More
  • Free Download - Custom Bloglovin' BadgesMany blogger's (myself included) choose to let readers subscribe via Bloglovin. It is a great way to stay updated and it even has an iphone app for reading blogs on the go. But the badges they provide aren't to everyon's tast… Read More

2 comments:

  1. Thanks, Faye!! I'm definitely going to try this!! And I'm going to tweet the post!!

    ReplyDelete
  2. [...] even add an icon to the start of the titles. These two tutorials will demonstrate how to do this.Add Image to Post Title in BloggerAdd Background Colour to Titles//LinkWithinCodeStart var linkwithin_site_id = 1125499; var [...]

    ReplyDelete