Change colour based on tags in Tumblr -
I am trying to create a type of IP statement, which uses Tumbler tags.
Tumblers uses these shortcodes to output tags of each post:
{block: tag} {tag} {/ block: tag}
... which will output it to:
"tag1tag2tag3tag4etc"
I have to create something like this ... < / P>
If {block: tags} {tag} {block} tags include "red", come back to hex for red. If it contains "blue", then return the hex to blue, and if it returns "red", then return to red.
I am feeling that this will require JavaScript, which I have never used, it should be quite simple, and any help would be greatly appreciated.
Comments
Post a Comment