(m)Social FIXED TOPBAR AND MENU LIKE CloudHost Template

Professional Joomla social template with metro design and JomSocial extension support.
Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Fri Jan 31, 2014 12:25 pm
Reply with quote
Report this post
Hi everyone,

Is there a way to create a fixed top bar and fixed menu in the (m)social template, like cloud host template.

CloudHost have a topbar module position above the logo and mainmenu position,and (m)social template haven't

How to add such position?

Should i have to add some code in one of the file (in templates\gk_msocial\layouts)?
Is there a way to have the menu (logo + main menu) in full width of the screen and in a fixed way , so the rest of the page scrolls under?

Thanks for your help
User avatar
Fresh Boarder

GK User
Sat Feb 01, 2014 10:02 am
Reply with quote
Report this post
Hello,

Please try to add the following CSS code in the css/template.css file:

Code: Select all
#gkTop {
position: fixed;
z-index: 1;
margin: 0;
left: 0;
}
#gkTop + .box {
padding-top: 62px;
}
User avatar
Administrator

GK User
Mon Mar 09, 2015 4:08 pm
Reply with quote
Report this post
Hello,

Is it also posible to fix the topbar and keep the width of the page instead of the width of the browser-window?
Thanks in advance for any help.
User avatar
Fresh Boarder

GK User
Tue Mar 10, 2015 6:20 pm
Reply with quote
Report this post
@StudioThijssen - you can try to use:

Code: Select all
#gkTop {
    left: 50%;
    max-width: 1280px;
    -webkit-transform: translateX(-50%);
    -moz-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    -o-transform: translateX(-50%);
    transform: translateX(-50%);
    width: 100%;
}


You can adjust max-width: 1280px to your template width.
User avatar
Administrator

GK User
Wed Mar 11, 2015 9:06 am
Reply with quote
Report this post
Thanks. Position is perfect.
But when I scrolldown the page content scrolls over the topbar, not 'underneath'.
Any tips for that?
User avatar
Fresh Boarder

GK User
Wed Mar 11, 2015 11:36 am
Reply with quote
Report this post
Could you provide me an URL to your website with this issue?
User avatar
Administrator

GK User
Wed Mar 11, 2015 8:37 pm
Reply with quote
Report this post
Please add also z-index: 1000; to the element positioned as fixed - it will solve your issue.
User avatar
Administrator

GK User
Wed Mar 11, 2015 10:33 pm
Reply with quote
Report this post
Perfect. Thanks!!

Could you tell mee what the code, z-index, do exactly?
User avatar
Fresh Boarder

GK User
Thu Mar 12, 2015 9:07 am
Reply with quote
Report this post
z-index is a CSS property responsible for the layers positioned relatively, fixed or absolutely.
User avatar
Administrator

GK User
Mon May 18, 2015 9:03 pm
Reply with quote
Report this post
Great post ! But please support us make the Fixed header not to apear when scrolling down, and make it show when it stop from scroll up. Like http://www.gavick.com website !
User avatar
Gold Boarder

GK User
Mon May 18, 2015 10:02 pm
Reply with quote
Report this post
@nadgob - sorry but implementing this kind of feature is definitely beyond of our technical support.
User avatar
Administrator

GK User
Tue May 19, 2015 9:09 am
Reply with quote
Report this post
it is somthing like that http://jsfiddle.net/mariusc23/s6mLJ/31/ . can You advice more how to implement on template ?
User avatar
Gold Boarder

GK User
Thu May 26, 2016 11:43 am
Reply with quote
Report this post
After I fixed the top, how can I make the rest of the layout position to start not under (behind) fixed top bar and just hereunder ! ... now the fixed top covers the rest.
P.S. keep in mind the mobile view not only the descktop.

Please advice.
User avatar
Gold Boarder

GK User
Tue Jun 21, 2016 1:19 pm
Reply with quote
Report this post
anybody here ? :) hello ...
User avatar
Gold Boarder


cron