Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!--
- Theme: Hide / Show Updates Tab by @mhango | @themesbyeva
- Version 1 (18th May 2021)
- Rules:
- > don't alter / remove the credit
- > don't copy parts of this code or use as a base
- > don't edit this code and redistribute
- > don't claim as your own
- Credits / Resources:
- > Hide / Show Effect
- @sophiasthemage
- -->
- Additional information can be found below the Installation Guide.
- INSTALLATION GUIDE:
- 1. Paste the following code within your meta section at the beginning of your theme (somewhere below <head>):
- <meta name="if:News Tab" content="1"/>
- <meta name="if:Stats Tab" content="1"/>
- <meta name="if:Blogs Tab" content="1"/>
- <meta name="if:Groups Tab" content="1"/>
- <meta name="if:Always Show Tabs" content="0"/>
- <meta name="color:Tab Text" content="#000000" />
- <meta name="color:Tab Background" content="#ffffff" />
- <meta name="color:Tab Borders" content="#dddddd" />
- <meta name="color:Tab Buttons" content="#f1f1f1" />
- <meta name="text:News Title" content="NEWS" />
- <meta name="text:News Text" content="your news go here" />
- <meta name="text:Stats Title" content="STATS" />
- <meta name="text:Stats Text" content="your stats go here" />
- <meta name="text:Blogs Title" content="BLOGS" />
- <meta name="text:Blog 1 Username" content="mhango" />
- <meta name="text:Blog 2 Username" content="breathings" />
- <meta name="text:Blog 3 Username" content="timelhess" />
- <meta name="text:Blog 4 Username" content="luhcent" />
- <meta name="text:Groups Title" content="GROUPS" />
- <meta name="text:Group 1 Badge Code" content="badge code here" />
- <meta name="text:Group 2 Badge Code" content="badge code here" />
- <meta name="text:Group 3 Badge Code" content="badge code here" />
- <meta name="text:Group 4 Badge Code" content="badge code here" />
- 2. Paste the following code right above <style type="text/css">:
- <!-- jquery library + hide / show effect -->
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
- {block:ifnotalwaysshowtabs}
- <script>
- $(document).ready(function(){
- $("#newsclick").click(function(){
- $("#newsshow").slideToggle("slow");
- });
- });
- $(document).ready(function(){
- $("#statsclick").click(function(){
- $("#statsshow").slideToggle("slow");
- });
- });
- $(document).ready(function(){
- $("#blogsclick").click(function(){
- $("#blogsshow").slideToggle("slow");
- });
- });
- $(document).ready(function(){
- $("#groupsclick").click(function(){
- $("#groupsshow").slideToggle("slow");
- });
- });
- </script>
- {/block:ifnotalwaysshowtabs}
- 3. Paste the following code right above </style>:
- #rightbar {
- background:transparent;
- padding: 1.2%;
- color: {color:Tab text};
- width: 11%;
- height:100%;
- line-height:1.2em;
- top: 0;
- right: 0;
- position:fixed;
- margin-top:2%;
- margin-right:2%;
- }
- .plugin {
- position:relative;
- display:block;
- margin:20px 10px;
- }
- .plugin img {
- width:28px;
- height:auto;
- border-radius:100%;
- -moz-border-radius: 100%;
- display:inline-block;
- padding:0 2px;
- }
- .plugin_title {
- background:{color:Tab Buttons};
- border:1px solid {color:Tab Borders};
- -moz-border-radius: 3%;
- border-radius:3%;
- padding:8px 10px;
- text-align:center;
- }
- .plugin_body {
- background:{color:Tab background};
- border:1px solid {color:Tab Borders};
- border-top:0px;
- -moz-border-radius: 3%;
- border-radius:3%;
- padding:8px 10px;
- }
- {block:ifnotalwaysshowtabs}
- #statsclick,#blogsclick, #newsclick, #groupsclick {cursor:help;}
- #statsshow, #blogsshow, #newsshow, #groupsshow {display:none;}
- {/block:ifnotalwaysshowtabs}
- 4. Now paste the following code below <body>
- <aside id="rightbar">
- {block:ifnewstab}<div class="plugin" title="tab by mhango">
- <div id="newsclick" class="plugin_title">{text:news title}</div>
- <div id="newsshow" class="plugin_body">{text:news text}<br>tab code by <a href="https://mhango.tumblr.com">mhango</a></div>
- </div>
- {/block:ifnewstab}
- {block:ifstatstab}<div class="plugin">
- <div id="statsclick" class="plugin_title">{text:stats title}</div>
- <div id="statsshow" class="plugin_body">{text:stats text}{block:ifnotnewstab}<br>tab code by <a href="https://mhango.tumblr.com">mhango</a>{/block:ifnotnewstab}</div>
- </div>
- {/block:ifstatstab}
- {block:ifblogstab}<div class="plugin">
- <div id="blogsclick" class="plugin_title">{text:blogs title}</div>
- <div id="blogsshow" class="plugin_body">
- <center>
- {block:ifblog1username}<a href="https://{text:blog 1 username}.tumblr.com" title="{text:blog 1 username}" target="_blank"><img src="https://api.tumblr.com/v2/blog/{text:blog 1 username}.tumblr.com/avatar/512"></a>{/block:ifblog1username}
- {block:ifblog2username}<a href="https://{text:blog 2 username}.tumblr.com" title="{text:blog 2 username}" target="_blank"><img src="https://api.tumblr.com/v2/blog/{text:blog 2 username}.tumblr.com/avatar/512"></a>{/block:ifblog2username}
- {block:ifblog3username}<a href="https://{text:blog 3 username}.tumblr.com" title="{text:blog 3 username}" target="_blank"><img src="https://api.tumblr.com/v2/blog/{text:blog 3 username}.tumblr.com/avatar/512"></a>{/block:ifblog3username}
- {block:ifblog4username}<a href="https://{text:blog 4 username}.tumblr.com" title="{text:blog 4 username}" target="_blank"><img src="https://api.tumblr.com/v2/blog/{text:blog 4 username}.tumblr.com/avatar/512"></a>{/block:ifblog4username}
- {block:ifnotnewstab}{block:ifnotstatstab}<a href="https://themesbyeva.tumblr.com" title="tab code by themesbyeva" target="_blank"><img src="https://api.tumblr.com/v2/blog/themesbyeva.tumblr.com/avatar/512"></a>{/block:ifnotstatstab}{/block:ifnotnewstab}
- </center>
- </div>
- </div>
- {/block:ifblogstab}
- {block:ifgroupstab}<div class="plugin">
- <div id="groupsclick" class="plugin_title">{text:groups title}</div>
- <div id="groupsshow" class="plugin_body">
- <center>
- {block:ifGroup1badgecode}{text:Group 1 Badge Code}{/block:ifGroup1badgecode}
- {block:ifGroup2badgecode}{text:Group 2 Badge Code}{/block:ifGroup2badgecode}
- {block:ifGroup3badgecode}{text:Group 3 Badge Code}{/block:ifGroup3badgecode}
- {block:ifGroup4badgecode}{text:Group 4 Badge Code}{/block:ifGroup4badgecode}
- {block:ifnotnewstab}{block:ifnotstatstab}{block:ifnotblogstab}<a href="https://themesbyeva.tumblr.com" title="tab code by themesbyeva" target="_blank"><img src="https://api.tumblr.com/v2/blog/themesbyeva.tumblr.com/avatar/512"></a>{/block:ifnotblogstab}{/block:ifnotstatstab}{/block:ifnotnewstab}
- </center>
- </div>
- </div>
- {/block:ifgroupstab}
- </aside>
- ADDITIONAL INFORMATION:
- - Each section can be chosen individually by sliding the particular toggle in the theme options
- - Tumblr is full of bugs so please make sure to switch each toggle on and off first in order to get it to work properly
- - The content of the News & Stats sections can be edited by using basic html:
- <b>bolded text</b>
- <i>italic text</i>
- <u>underlined text</u>
- line break<br>
- <p>paragraph</p>
- - The badge code for the Groups section should look something like this:
- <a href="https://mhango.tumblr.com" title="Group Name"><img src="https://image.png"></a>
- - To add more blogs to the Blogs section, please refer to this tutorial: https://pastebin.com/tHgg7dsf
- - A credit link is shown inside the tab (position depends on the sections you have chosen). Do NOT delete the credit link!!!
- - Any questions or trouble with this code? Contact me at @themesbyeva.
Add Comment
Please, Sign In to add comment