How to create fixed top bar like this Gavick site ?

Change your online store into modern look with myStore eCommerce VirtueMart Joomla template - discussion forum.
GK User
Sat Oct 20, 2012 5:26 pm
Hello, does anyone know how to create fixed top bar like this Gavick site on gk mystore template ? I want to implementation fixed bar in my site. Below is the screen shot. I just want put image there,...
screenshot.jpg
User avatar
Fresh Boarder

GK User
Sat Oct 20, 2012 8:28 pm
You need to add the div to file default.php at the same beginning of the file (in body area). Then set some id for this div and use code like below in override css :

Code: Select all
div#yourID {position: fixed; top: 0; width: 100%; z-index: 999; min-height: 40px}
User avatar
Platinum Boarder

GK User
Sun Oct 21, 2012 12:11 pm
Thanks for help..its important or not to create a new module position ? I had try to create new module position (its exactly on https://www.gavick.com/forums/the-world ... e&start=40 ) but I cannot find file gkconst.php on gk mystore. Or maybe your answered is alternative solution than creating new module position? I think I need more detail explanation...
User avatar
Fresh Boarder

GK User
Mon Oct 22, 2012 9:01 pm
I gave CSS styles for this new module position. The position you need to add exactly like it is described on tutorial and then style content using code from my previous post. The gk.const.php file should be in template/lib/framework directory but it depends what Joomla! version you use.
User avatar
Platinum Boarder

GK User
Tue Oct 23, 2012 11:16 am
I use joomla 1.5.26..i think there is no gk.const.php...so what is exactly the alternative file in joomla 1.5.26 for gk.const.php ?

Thanks for your help.
User avatar
Fresh Boarder

GK User
Wed Oct 24, 2012 8:46 am
You can just skip this step in Joomla! 1.5 and use code to load position like here :

Code: Select all
<jdoc:include type="modules" name="banner2" style="none" />


where banner2 replace with your position name.
User avatar
Platinum Boarder

GK User
Mon Nov 12, 2012 1:31 pm
I try your suggest but there's nothing happen the bar not show,i follow the instruction how to add module position but nothing happen..can you explain this more clearly? Thx for your help..
User avatar
Fresh Boarder

GK User
Tue Nov 13, 2012 9:13 am
Did you publish some module on this new position ? It is even visible somewhere in front-end ?
User avatar
Platinum Boarder


cron