• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Gokul Deepak

GoCool and Debug

  • Home
  • WordPress
  • Android
  • How to
  • About Me
Home » Blogger » How to Show Only Post Title in Label Page

How to Show Only Post Title in Label Page

August 29, 2016 by GokulDeepak Leave a Comment

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.

Show Only Post Title in Label Page

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’/>
Click here to read more blogger tips

Related

Filed Under: Blogger

Authored by Gokul Deepak S

Reader Interactions

Leave a Reply Cancel reply

Primary Sidebar

Popular Posts

  • How to find the date of the Facebook group it was created
  • Home
  • Downgrade from Lollipop to Kitkat for Micromax Canvas A1 (Android One)
  • How to remove Linux OS in Tamilnadu Government Free Laptop
  • How to block access to the wp-content uploads folder
  • How to add ads.txt on Bluehost
  • Combine two separate files line by line in Notepad++

Recent Posts

  • Can’t connect to Ubuntu with SSH
  • Change Timezone in Ubuntu 20.04 – Simple method
  • Output for timedatectl list-timezones
  • PM2 Cheatsheet – Important Commands
  • MongoDB Terminal commands – Cheatsheet

Archives

Categories

  • Android
  • Apache
  • Blogger
  • Computer Tips
  • Earn
  • Facebook Tips
  • Git
  • Google Tips
  • How to
  • Laptop Tips
  • Laptops
  • Linux
  • Mobile
  • MongoDB
  • Nginx
  • Notepad++
  • PostgresQL
  • Ubuntu
  • Wordpress
  • Xenforo

Tags

Android Android One Bluehost Comparisions Custom ROM Elementor Facebook Genesis Genesis Sample Theme Google Drive How to Lineage OS OnePlus One OwnCloud Rooting Smartphones Stock ROM Studiopress Wordpress plugin

Copyright © 2021 ยท Maintained by GokulDeepak