Docker

How to Show Only Post Title in Label Page

Sometimes we have show only post title in label page and in archive pages. I had a website for lyrics which should show only movie name list in the label page. so I have searched for this option and found this one.

This will save lot of space in the label page(a page after you clicked one of the label) and to boost the blog speed. Why? Because, usually if we want to find an article, and we didn’t find it in home page, we will search in label. But, if we click one of the label, we will be shown all of the content of each post in that label. So, we have to wait until the loading is complete. Long, right? So, the solution is, just follow the steps below.

How to Show Only Post Title In Label page:

  1. Go to blogger dashboard
  2. Go to Template –> Edit HTML
  3. Press ctrl+f to search for a text
  4. Then find <b:include data=’post’ name=’post’/>
  5. Replace the code above, with the code below.
    <b:if cond=’data:blog.homepageUrl != data:blog.url’>
    <b:if cond=’data:blog.pageType != &quot;item&quot;’>
    <a expr:href=’data:post.url’>
    <div style=’padding:6px 0 6px 5px;border-right:1.5px solid #000;border-bottom:1.5px solid #000;margin-bottom:2px;background:#E6E4E4;color:#000000;’><img alt=’&gt;&gt;&gt;’ border=’0′ src=’https://lh5.googleusercontent.com/-HP5XyclRQic/TXMMAKmlg5I/AAAAAAAAAQk/wrCGFu9jzmg/s1600/sidebar-icon.png’/>
    <data:post.title/></div></a>
    <b:else/>
    <b:include data=’post’ name=’post’/>
    </b:if>
    <b:else/>
    <b:include data=’post’ name=’post’/>
    </b:if>
    Customize:
    The Red code are the background color, you can edit or remove it
    The Blue code is the icon address
  6. Just click on Save Template

We have successfully changed code. Now go to a label page and test result.

 

————————————————
1) If you can’t find any text using ctrl+f just copy the text to notepad and then press ctrl+f and then paste it there.
2) If post contains any thumbnail images and if you want to show the thumbnails related to that post then replace this code instead of that Blue code
<img alt=’&gt;&gt;&gt;’ border=’0′ expr:src=’data:post.thumbnailUrl’/>
Gokul Deepak S

Recent Posts

Running crontab on AWS auto scaling group

Linux has a convenient feature of running cronjob which will get executed at the correct…

11 months ago

Learn with Gokul

As famous Tamil poet Auvaiyar said "Katradhu Kai Mann Alavu, Kallathathu Ulaga Alavu" which is…

11 months ago

Terraform Cheat sheet

Terraform Cheatsheet with pdf. You can download Terraform Cheatsheet pdf with all Terraform CLI commands…

11 months ago

Strategy to prepare for Terraform Associate Exam Preparation

I was planning to do Terraform certification a long time ago. I have worked on…

11 months ago

Runcloud vs SiteGround Comparision

As a user of both of these services has got multiple benefits with both of…

2 years ago

Important Docker Commands to remember

You need not memorize these important docker commands. Repeated usage will make it easy for…

2 years ago

This website uses cookies.