1) Fix header when scroll down ,
2) Promo wrapper on top page,
such as following website >>> https://www.cottonink.co.id/shop/catalog/accessories/ , really need the support for this 2 edit , anyone can assist on this matter , much appreciate.
What change do you want to make there?
Regards,
Knowband Team
Opencart Plugins: Knowband Store
Email: support@knowband.com
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
i found the solution for this requirement.
you may use jquery plungins for this
like you may find many solutions from here
http://www.jqueryrain.com/demo/jquery-fixed-header/
i have chosen this one
https://github.com/bigspotteddog/ScrollToFixed
steps to follow is as below;
1.download files from https://github.com/bigspotteddog/ScrollToFixed link
2.place jquery-scrolltofixed-min.js at
catalog\view\javascript\jquery
3.open catalog\view\theme\default\template\common\header.tpl
goto
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() {
$('#mydiv').scrollToFixed();
});
</script>
Code: Select all
<nav id="top">
Code: Select all
<div id="mydiv" style="z-index:1;background-color:white;">
end of file and add below code
Code: Select all
</div>
it will work as you want.
good day.
Reason: Added code tags.
Good Day,
Jagruti
opencart tips and tricks ,
opencart blogs , opencart extensions/themes , custom development.
its really great.
thanks for the appreciation.
good day.
Good Day,
Jagruti
opencart tips and tricks ,
opencart blogs , opencart extensions/themes , custom development.
Thank you so much!!!sarthakinfotech wrote:hi
i found the solution for this requirement.
you may use jquery plungins for this
like you may find many solutions from here
http://www.jqueryrain.com/demo/jquery-fixed-header/
i have chosen this one
https://github.com/bigspotteddog/ScrollToFixed
steps to follow is as below;
1.download files from https://github.com/bigspotteddog/ScrollToFixed link
2.place jquery-scrolltofixed-min.js at
catalog\view\javascript\jquery
3.open catalog\view\theme\default\template\common\header.tpl
goto
and add below codeCode: Select all
<script src="catalog/view/javascript/jquery/jquery-2.1.1.min.js" type="text/javascript"></script>
4.now gotoCode: Select all
<script src="catalog/view/javascript/jquery/jquery-scrolltofixed-min.js" type="text/javascript"></script> <script type="text/javascript"> $(document).ready(function() { $('#mydiv').scrollToFixed(); }); </script>
and above this add below codeCode: Select all
<nav id="top">
now gotoCode: Select all
<div id="mydiv" style="z-index:1;background-color:white;">
end of file and add below code
now you may test the code .Code: Select all
</div>
it will work as you want.
good day.
anybody wish to get such functionality may refer http://forum.opencart.com/viewtopic.php?f=124&t=167034
Good Day,
Jagruti
opencart tips and tricks ,
opencart blogs , opencart extensions/themes , custom development.
http://www.viethemes.com - OpenCart turtorials, news, tips and stricks, extension
Our extensions:
Visual Theme Editor - Powerful tool for customizing style of any theme visually
Live Theme Editor - Customize layout, colors, backgrounds, fonts of the default theme
Theme Animation - Animation Editor for any theme
Extra Positions PRO, Custom JavaScript, Custom CSS and others
Then, you are not posting in the right forum section. However, since the changes above involves editing HTML / JS content, then you would need to clear your OC cache from the OC admin to reflect the change: viewtopic.php?f=176&p=718325#p718325 .
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
this works on theme pav protector ?sarthakinfotech wrote: ↑Fri Aug 05, 2016 12:09 pmhi
i found the solution for this requirement.
you may use jquery plungins for this
like you may find many solutions from here
http://www.jqueryrain.com/demo/jquery-fixed-header/
i have chosen this one
https://github.com/bigspotteddog/ScrollToFixed
steps to follow is as below;
1.download files from https://github.com/bigspotteddog/ScrollToFixed link
2.place jquery-scrolltofixed-min.js at
catalog\view\javascript\jquery
3.open catalog\view\theme\default\template\common\header.tpl
goto
and add below codeCode: Select all
<script src="catalog/view/javascript/jquery/jquery-2.1.1.min.js" type="text/javascript"></script>
4.now gotoCode: Select all
<script src="catalog/view/javascript/jquery/jquery-scrolltofixed-min.js" type="text/javascript"></script> <script type="text/javascript"> $(document).ready(function() { $('#mydiv').scrollToFixed(); }); </script>
and above this add below codeCode: Select all
<nav id="top">
now gotoCode: Select all
<div id="mydiv" style="z-index:1;background-color:white;">
end of file and add below code
now you may test the code .Code: Select all
</div>
it will work as you want.
good day.
Users browsing this forum: Google [Bot] and 100 guests