How to hide posts in a label from the home page Blogger

May 02, 2019 May 02, 2019
Find <b:include data='post' name='post'/> and replace it with these lines:

<b:if cond='data:blog.url == data:blog.homepageUrl'>
  <b:if cond='data:post.labels none ( l => l.name == "Pasta" )'>
    <b:include data='post' name='post'/>
  </b:if>
  <b:else/>
  <b:include data='post' name='post'/>
</b:if>
Source: https://stackoverflow.com/questions/51093245/how-to-hide-posts-in-a-label-from-the-home-page-blogger

2 comments for How to hide posts in a label from the home page Blogger

avatar

Sir I have question my website is in blogger


Lates take example

It's

Example.com/2020/11/post.html


I want to set a condition that when this url open it shows English content

But when the url is

Example.com/2020/11/post.html?hl=hi

It shows hindi content

And so on with other language


I have tried to put conditional tags in my post.

By aplying tags to specific url to show only English content on above url and other hindi content on other url


But the conditional tags are not working

Can you help me with it sir 🙏🙏🙏🙏🙏🙏

Reply Nov 21, 2021, 11:32:00 AM