Skip to content Skip to sidebar Skip to footer

Change Color By Blogger Tag

is there any way to change some blogger areas by tag? Example, I'm on a page that has the tag cars, only this page would have as a few sections: .body .header have a different colo

Solution 1:

The snippet in the end of your question will work perfectly in labels page. In article page you need a similar code to check if post has a specific tag, so you need to add the next code within main blog posts loop:

<!-- check if page type is article page & check if article has a "car" tag -->
<b:if cond='data:view.isPost and data:post.labels any (l => l.name == "car")'>
  <style>
    body { background: #e2ad44 }
  </style> 
</b:if>

Post a Comment for "Change Color By Blogger Tag"