-
AuthorPosts
-
Pankaj Sharma Moderator
Pankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
October 6, 2017 at 2:35 am #1066221Hi
You can add header.php file in the /local/tpls/header.php
To create an override of this file.
For the back to top buttonOpen tpls/blocks/footer.php file
Add below code after line 15<!-- BACK TOP TOP BUTTON --> <div id="back-to-top" data-spy="affix" data-offset-top="300" class="back-to-top hidden-xs hidden-sm affix-top"> <button class="btn btn-primary" title="Back to Top"><i class="fa fa-angle-up"></i></button> </div> <script type="text/javascript"> (function($) { // Back to top $('#back-to-top').on('click', function(){ $("html, body").animate({scrollTop: 0}, 500); return false; }); })(jQuery); < /script > <!-- BACK TO TOP BUTTON -->
save and check.
For sticky menu do you want it only for mobile ?
Regards
cytropics Friendcytropics
- Join date:
- April 2014
- Posts:
- 44
- Downloads:
- 38
- Uploads:
- 20
- Thanks:
- 5
- Thanked:
- 1 times in 1 posts
October 6, 2017 at 4:03 am #1066236Hi,
Thanks #3 resolved – override.Now, on to the remaining two:
I added code for "back to top", didn’t work.The sticky came default for large screens, I also want it for all other screens
Regards.
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
October 6, 2017 at 4:34 am #1066245Hi
Can u share the URL here?cytropics Friendcytropics
- Join date:
- April 2014
- Posts:
- 44
- Downloads:
- 38
- Uploads:
- 20
- Thanks:
- 5
- Thanked:
- 1 times in 1 posts
October 6, 2017 at 4:36 am #1066246This reply has been marked as private.Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
October 6, 2017 at 4:46 am #1066248Hi
Add below code in custom.css file.header-trans .t3-header-wrap.affix { position: fixed!important;} .back-to-top { position: fixed; bottom: 70px; right: 24px; z-index: 100; }.back-to-top.affix .btn { -webkit-transform: scale(1); -ms-transform: scale(1); -o-transform: scale(1); transform: scale(1); }.back-to-top .btn { background-color: #234269; color: #ffffff; padding: 0; height: 60px; width: 60px; -webkit-transition: all 600ms; -o-transition: all 600ms; transition: all 600ms; -webkit-transform: scale(0); -ms-transform: scale(0); -o-transform: scale(0); transform: scale(0); }
Regards
cytropics Friendcytropics
- Join date:
- April 2014
- Posts:
- 44
- Downloads:
- 38
- Uploads:
- 20
- Thanks:
- 5
- Thanked:
- 1 times in 1 posts
October 6, 2017 at 3:21 pm #1066405Thank you.
One more thing how to get the back to top on all screen views? Currently it only shows on large screens.
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
October 9, 2017 at 2:37 am #1066638Hi
Remove
hidden-xs hidden-sm
from the footer.php code i suggested in this thread.
Regards -
AuthorPosts
This topic contains 8 replies, has 2 voices, and was last updated by cytropics 7 years, 1 month ago.
The topic ‘Fixed Menu & Back to top’ is closed to new replies.