Make Your Post Title Unclickable in Blogger

Well in Wordpress Blogs You might have Seen that the titles of single post of WordPress blog is unclickable. It means URL of the post is disabled in the post titles. This feature is only implemented in post page but not in homepage. Lets take this blog as an example.So Let's See How this Works:.




Step1:.


Go to Blogger < Edit Html < Now Check Expand Widget Templates.


Step2:.


Find the following code.Note that this code mat not be same in your template. I use H2 tag. But in Some Cases it Might be h1 or H3.

<b:if cond='data:post.title'>
      <h1 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'>
          <a expr:href='data:post.url'><data:post.title/></a>
        <b:else/>
          <data:post.title/>
        </b:if>
     </b:if>
      </h1>

Now Replace the Above Code With the Following Code...


<b:if cond='data:post.title'>
      <h1 class='post-title entry-title'><b:if cond='data:blog.pageType == "item"'>
     <b:if cond='data:post.link'>
       <data:post.title/>
     <b:else/>
        <b:if cond='data:post.url'>
          <data:post.title/>
        <b:else/>
          <data:post.title/>
        </b:if>
</b:if>
  
 <b:else/>
 <b:if cond='data:post.link'>
       <a expr:href='data:post.link'><data:post.title/></a>
     <b:else/>
        <b:if cond='data:post.url'>
          <a expr:href='data:post.url'><data:post.title/></a>
        <b:else/>
          <data:post.title/>
        </b:if>
</b:if>
     </b:if>
      </h1>

Now Save the Template and You're Done. Go to Your Blog And Click On Your Post Title's and You will Find that your Post Titles are Unclickable.That's it.Keep Visiting.

1 comment:

Blogger Template by Clairvo