Making Titles Posts into links - Ash Princess Kawaii
Breaking News
Loading...
05 April 2014

Making Titles Posts into links

tutorial freebies

In the blog post section usually post title is the text that is not a link. If we want to make the post title into a link, do the following tutorial.
1. template and edit html
2. Find code below

<h2 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>
</h2>
Replace with the code:

<h2 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>
</h2>
3. Save template and done.

If the above code does not exist, the possibility of the template you use h3 tags for the title of the post, the solution is replace the text above h2 becomes h3. May be useful!

0 Comments:

Posting Komentar