Advertisement
ireallywantagf

Redirect Tag Tutorial

Oct 12th, 2017
1,112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. 1. Paste the code below BEFORE the </title> code in your theme:
  2.  
  3. <meta name="text:Redirect Tag" content="" />
  4.  
  5. Or group it with the other meta blocks.
  6.  
  7. 2. Paste this code below right after the <body> code:
  8.  
  9. {block:IndexPage}<script type="text/javascript">
  10. var url = location.href;
  11. if (url == "{BlogURL}") {
  12. window.location = "{BlogURL}tagged/{text:Redirect Tag}";
  13. }
  14. </script>{/block:IndexPage}
  15.  
  16. It is REALLY important to paste it right after <body>! If you paste it anywhere else, the script may malfunction and cause popups.
  17.  
  18. 3. Go back to your theme settings. You should see a text box titled "Redirect Tag". In the box, paste or type whatever tag you want the person viewing your blog to be redirected to. Note that if you type "/tagged/" before the tag, you'll be redirected to yoururl.tumblr.com/tagged/tagged/x.
  19.  
  20. Only type whatever tag you want to be redirected to, not the /tagged/ part itself!
  21.  
  22. 4. You're done!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement