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

Gokul Deepak

GoCool and Debug

  • Home
  • WordPress
  • Android
  • How to
  • About Me

How to Show Only Post Title in Label Page

August 29, 2016 by Gokul Deepak S 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

Filed Under: Blogger

Authored by Gokul Deepak S

Leave a Reply Cancel reply

0 Comments
Inline Feedbacks
View all comments

Primary Sidebar

Popular Pages

  • How to find the date of the Facebook group it was created
  • How to add ads.txt on Bluehost
  • Elementor Plugin and Nginx Configuration
  • Home
  • CORS error in Apache Tomcat - Solved
  • Combine two separate files line by line in Notepad++

Archives

Categories

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

Tags

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

Copyright © 2023 ยท Maintained by GokulDeepak

wpDiscuz
 

Loading Comments...