I've just realized how powerful the trick with var instead of a color is when used in practice! Unfortunately not possible to give a second like, so leaving my kudos here :)
Redefining the variable based on category instead of trying to add a different variable per category👍 Sharing these different logic videos can so expand one's thinking in seeing new possibilities, great little helpful video
Not a web designer just have a basic blog with generate press but your videos were so helpful when I designed the blog. So much so that I wanted to stick around so I can keep learning even if I’m done designing! Thank you!
Thanks Kyle, Nice bit of logic, can certainly use it - before I watched I thought "I'll bet he is going to add a custom field to each category which is is a hex value for the colour for that category", but I was wrong! There are limitations here - when the client adds a new category someone has to update the CSS, and what if a post has 2 or more categories?
This is Awesome! I knew about those particular sets of properties, but I didn't think about putting them together. Now I feel rather silly, LOL! Thanks you for point out how to use these features together. 😄
I wished this video had been released a few weeks back when I was trying to do the same thing lol I used a similar way to target categories and tags. As an example, I used the following CSS to target each tag: .entry-meta .tags-links a[href*="YOURTAGHERE"] { background-color:#ff3e00; } And categories: .entry-meta .cat-links a[href*="YOURCATEGORYHERE"{ background-color:#77bb2c; } And finally, the tag cloud widget: .wp-block-tag-cloud .tag-cloud-link[href*="TAGNAMEHERE"] { background-color:#77bb2c; }
I've just realized how powerful the trick with var instead of a color is when used in practice! Unfortunately not possible to give a second like, so leaving my kudos here :)
Simple, yet brilliant! You're pushing me closer to GB & GP
Maaan I've been thinking about this style for so many years and suddenly you just come out with this wizard tutorial. Dang! Thanks a LOT :D
🙌 I'm in your brain!
Redefining the variable based on category instead of trying to add a different variable per category👍 Sharing these different logic videos can so expand one's thinking in seeing new possibilities, great little helpful video
Oh snap, I love this! Great demo man! 🙌 Definitely see myself using it!
Not a web designer just have a basic blog with generate press but your videos were so helpful when I designed the blog. So much so that I wanted to stick around so I can keep learning even if I’m done designing! Thank you!
Ah wow, that's awesome to hear! 🙌 Glad it's helpful and thank you for the support!
This is definitely going on my saved YT vids
Thanks Kyle, Nice bit of logic, can certainly use it - before I watched I thought "I'll bet he is going to add a custom field to each category which is is a hex value for the colour for that category", but I was wrong! There are limitations here - when the client adds a new category someone has to update the CSS, and what if a post has 2 or more categories?
This is Awesome! I knew about those particular sets of properties, but I didn't think about putting them together. Now I feel rather silly, LOL! Thanks you for point out how to use these features together. 😄
Glad it was helpful!
I wished this video had been released a few weeks back when I was trying to do the same thing lol
I used a similar way to target categories and tags. As an example, I used the following CSS to target each tag:
.entry-meta .tags-links a[href*="YOURTAGHERE"] {
background-color:#ff3e00;
}
And categories:
.entry-meta .cat-links a[href*="YOURCATEGORYHERE"{
background-color:#77bb2c;
}
And finally, the tag cloud widget:
.wp-block-tag-cloud .tag-cloud-link[href*="TAGNAMEHERE"] {
background-color:#77bb2c;
}
Sounds like it got the job done! 😅