MyBB Community Forums
insert a "return to top-button" - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: 1.8 Support (https://community.mybb.com/forum-175.html)
+--- Forum: General Support (https://community.mybb.com/forum-176.html)
+--- Thread: insert a "return to top-button" (/thread-162905.html)



insert a "return to top-button" - blongso - 2014-11-16

Hello!

How can I insert this button ( postbit ) bottom right in the forum?
I know that the link with the same effect appears on the left in the forum , many users want a Button ...

[Image: 2qsndlk.jpg]

Thanks for an answer :-)


greets,
blongso


RE: insert a "return to top-button" - mmadhankumar - 2014-11-17

i am just giving the basic stuff here...

add this to your footer template.....

<a href="#" class="scrollup">Go to Top</a>


and add this to your theme's global.css...

.scrollup {
opacity: 0.5;
position: fixed;
bottom: 10px;
right: 10px;
}

.scrollup:hover {
opacity: 1;
}


this will place a text to scroll to top.. you can define background color or a image and more css properties to .scrollup to make it look more beautiful... also you can use jquery for a smooth slide to top if you wish...


RE: insert a "return to top-button" - blongso - 2014-11-17

Thank you mmadhankumar!

Greets,
blongso