Would Like to use the second menu!

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
Sat May 25, 2013 2:03 am
Reply with quote
Report this post
I would like to know which file I would have to edit in order to use the second menu on my home page!

I think its call the #gkMenuWrap.active menu.

I would like to keep the same format on all my pages and when the homepage loads you get the first menu with no background, but when you scroll down the second menu loads with the white background and thats the one I would like to use!

I believe this is the file gk.scripts.js but I ma not sure about the code I need to change! this is what I founded but unsure on how to edit.


if(page_loaded && jQuery('body').hasClass('imageBg')) {
// if menu is not displayed now
if(jQuery(window).scrollTop() > headerHeight && !jQuery('#gkMenuWrap').hasClass('active')) {
//document.id('gkHeaderNav').inject(document.id('gkMenuWrap'), 'inside');
jQuery('#gkMenuWrap').append(jQuery('#gkHeaderNav'));
jQuery('#gkHeader').attr('class', 'gkNoMenu');
// hide
jQuery('#gkMenuWrap').attr('class', 'active');
}
//
if(jQuery(window).scrollTop() <= headerHeight && jQuery('#gkMenuWrap').hasClass('active')) {
jQuery('#gkHeader').first('div').css('display', 'block');
jQuery('#gkHeader').first('div').prepend(jQuery('#gkHeaderNav'));
jQuery('#gkHeader').attr('class', '');
jQuery('#gkMenuWrap').attr('class', '');




Again I am seeking to use the second menu that loads when you scroll beyond the header. The one with the white background when the homepage loads without having to scroll down. Just like when you go to another page the second menu loads...

Thanks
User avatar
Junior Boarder

teitbite
Sun May 26, 2013 7:09 am
Reply with quote
Report this post
Hi

This is not an easy task. Our templates have menu as a static element, which means that You will have to make many changes in code.

What I advice is to create a new module position and use mod_menu instead. Than just style it as a current menu. Unfortunately this is a customization request, so I cannot assist You with that since we do not support such big modifications.
User avatar
Moderator

GK User
Sun May 26, 2013 5:05 pm
Reply with quote
Report this post
Thanks for the reply... We was able to do it in J25 by making a few edits in the menu.css file, but for whatever reason its not carrying over to J3.1 when we make the same edits!

Odd?

But thanks again...
User avatar
Junior Boarder

teitbite
Tue May 28, 2013 7:43 am
Reply with quote
Report this post
Hi

Yes, that's odd since framework for J2.5 and J3.1 are almost identical. Can I please take a look at J3.1 site ?
User avatar
Moderator

GK User
Wed Feb 11, 2015 3:09 pm
Reply with quote
Report this post
Yet another example of the exact same question I have, and no solution...
User avatar
Fresh Boarder

teitbite
Thu Feb 12, 2015 9:37 pm
Reply with quote
Report this post
Hi

Please remove page class suffix "imageBg". It should use the default menu only.
User avatar
Moderator


cron