It doesn't by default. Usually To Top button is a theme feature and most themes indeed have it.
Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com
Following this topic: http://forum.opencart.com/viewtopic.php ... 17#p632449
I downloaded the zip file and put the jquery-scrolltofixed-min.js in
catalog\view\javascript\jquery
Then in catalog\view\theme\YOUR_THEME\template\common\header.tpl find
And add after
At the very bottom of the header.tpl file find
And add before
Obviously you can change this about a bit but it might give you an idea
I downloaded the zip file and put the jquery-scrolltofixed-min.js in
catalog\view\javascript\jquery
Then in catalog\view\theme\YOUR_THEME\template\common\header.tpl find
Code: Select all
<script src="catalog/view/javascript/jquery/jquery-2.1.1.min.js" type="text/javascript"></script>
Code: Select all
<script src="catalog/view/javascript/jquery/jquery-scrolltofixed-min.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
$('#bak2top').scrollToFixed();
});
</script>
Code: Select all
<?php } ?>
Code: Select all
<div id="bak2top" style="z-index:1;background-color:white;">
<a href="#top" class="top" title="Top">
<i class="fa fa-chevron-circle-up fa-fw icon-gray" aria-hidden="true" style="font-size:24px;"></i>
<span class="sr-only">Top</span>
</a>
</div>
Who is online
Users browsing this forum: No registered users and 78 guests