In Homepage trying to give color .feed-view .post-wrapper .snippet-thumbnail-container based on label. For example for label "Italiano" background-color:red and for label "English" background-color:blue,
<b:if cond='data:view.isHomepage'><style>.feed-view .post-wrapper .snippet-thumbnail-container{background-color:red!important}</style></b:if>
with this code all thumbnails get red in Homepage but when i add label condition ...
<b:if cond='data:view.isHomepage and data:post.labels any (l => l.name == "Italiano")'><style>.feed-view .post-wrapper .snippet-thumbnail-container { background-color: red !important}</style></b:if>
with this code no color at all. My mistake is in condition post.labels but i can't find exactly what is the the mistake.
. I tried with loop also but same result. isHomepage would color snippets in Homepage but labels wont work.
– John Grischam Oct 13 '21 at 09:50