Rabu, 28 Oktober 2009

Making Title Without Content

Imagine when the visitors opened the labels or categories whose contents have been 100 posts, this would be a problem as it requires a long time to open all the pages perfectly.

To overcome the above, ie by displaying the post title without the content (pages) post, this way we have done the ease and convenience of visitors to our blog surfing, of course, the speed to open the blog grow 50 times faster to open a label .. or category on our blog.

Want to know how to make it ...? Follow the steps below:

First:

Open Template-> Edit HTML -> Do not forget to do backups of the templates:) -> then check the 'Expand Widget Templates'

Second:

See the code below:

<!-- posts --> <div class='blog-posts hfeed'> <b:include data='top' name='status-message'/> <data:adStart/> <b:loop values='data:posts' var='post'> <b:if cond='data:post.dateHeader'> <h2class='date-header'><data:post.dateHeader/></h2> </b:if><b:include data='post' name='post'/>

Then look for the red color code above, if you've met the red color change above code with the code below:

<b:if cond='data:blog.homepageUrl != data:blog.url'> <b:if cond='data:blog.pageType != "item"'> <a expr:href='data:post.url'> <data:post.title/></a><br/><br/> <b:else/> <b:include data='post' name='post'/> </b:if> <b:else/> <b:include data='post' name='post'/> </b:if>

Third:

Do not forget to save and see the results.

Tidak ada komentar:

Posting Komentar

Terima kasih,
Anda telah berkenan membaca artikel diblog ini, semoga dengan artikel yang sangat sederhan ini dapat memberikan manfaat untuk kita.
jangan lupa "kasih komentar" di bawah ini, agar saya dapat bekunjung ke blog Saudara.