tezx

Custom Tumblr Controls

Mar 9th, 2014
777
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.65 KB | None | 0 0
  1. FOR LINKS AND EXTRA INFO, GO TO THE TUTORIAL ON MY THEME BLOG: http://lchiban.tumblr.com/post/79048564335/hello-could-you-repost-this-pretty-pretty-please
  2.  
  3. -----------------------------------------------------------
  4.  
  5. 1. Replace the tumblr controls codes with this. They can be found above </style> or CTRL+F tumblr_controls:
  6.  
  7. {block:IndexPage}
  8. #tumblr_controls {display:none;}
  9. {/block:IndexPage}
  10.  
  11. {block:PermalinkPage}
  12. iframe#tumblr_controls {
  13. position: fixed !important;
  14. right:0px !important;
  15. -moz-transition: all 0.8s ease-out;
  16. -webkit-transition: opacity 0.7s linear;
  17. -webkit-transition: all 0.8s ease-out;
  18. transition: all 0.8s ease-out;
  19. opacity: 0.5;}
  20.  
  21. iframe#tumblr_controls:hover {
  22. -webkit-transition: opacity 0.7s linear;
  23. -moz-transition: all 0.4s ease-out;
  24. -webkit-transition: all 0.4s ease-out;
  25. transition: all 0.4s ease-out;
  26. opacity: 1;}
  27. {/block:PermalinkPage}
  28.  
  29. -----------------------------------------------------------
  30.  
  31. 2. Make a div id so we can position them. Put this anywhere in between <style> and </style> (I suggest above </style>). You can change “top” “right” to “bottom” “left” or just adjust them if you want them positioned elsewhere:
  32.  
  33. #tumblrcontrols{
  34. position:fixed;
  35. top:0px;
  36. right:0px;
  37. }
  38.  
  39. -----------------------------------------------------------
  40.  
  41. 3. Now to make it visible. Put this under <body>:
  42.  
  43. <div id="tumblrcontrols">
  44. <a href="http://www.tumblr.com/follow/blogname" ><img src="http://media.tumblr.com/tumblr_me6mt14hR81r66uyo.png"></a>
  45. <a href="http://www.tumblr.com/dashboard" ><img src="http://media.tumblr.com/tumblr_me6mt8NxMB1r66uyo.png"></a>
  46. </div>
  47.  
  48. (NOTE: Change blogname to your URL)
Advertisement
Add Comment
Please, Sign In to add comment