Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ~~~ STEP 1.
- // Locate the tag code in your theme. You can use Ctrl+F to search for "{Tag}"
- // It could look something like this:
- <div class="tags">
- {block:Tags}<a href="{TagUrl}">#{Tag}</a>{/block:Tags}
- </div>
- // Now you want to add the following code to the element around {Tag}:
- class="t t-{URLSafeTag}"
- // In this case it would look like this:
- <div class="tags">
- {block:Tags}<a href="{TagUrl}" class="t t-{URLSafeTag}">#{Tag}</a>{/block:Tags}
- </div>
- // If the element around {Tag} already has a class, for example like this:
- <a ... class="tag">#{Tag}</a>
- // then just add a space ( ) and t t-{URLSafeTag} after it, like this:
- <a ... class="tag t t-{URLSafeTag}">#{Tag}</a>
- // ~~~ STEP 2.
- // Paste the following code before </head>
- // (Again: you can use Ctrl+F to search for </head> )
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
- <!-- tag whitelisting/blacklisting by cloudythms -->
- <script src="https://static.tumblr.com/tpbx7ye/jYApceqxp/tagmanagecloudythms.js"></script>
- <script>
- $(document).ready(function(){
- $(".t").tagManage("blacklist", /* blacklist or whitelist */
- [
- "example",
- "example tag",
- "example*tag",
- "example!tag",
- "example?tag",
- "example.tag",
- "example(tag",
- "example)tag",
- "example;tag",
- "example+tag",
- "example&tag",
- "example\"tag",
- "example'tag"
- /* enter your tags here like you would on a tumblr post
- (without #, but with all special characters you use).
- put them into quoatation marks ("") and
- add a comma (,) after each one, except the last one.
- if you have tags that include " put a backslash before:
- example"tag" ---> example\"tag\"
- all other special characters should work fine.
- */
- ]);
- });
- </script>
- // ~~~ STEP 3.
- // If you want to whitelist tags instead of blacklist them,
- // just change "blacklist" to "whitelist".
- // Now just follow the instructions in the code for adding your tags!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement