Vanishing Main 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 Mar 08, 2014 11:55 pm
Reply with quote
Report this post
After scrolling down on the homepage, then back to the top of the page, the menu seems to vanish in both Firefox (7.0.1) and Chrome (33.0.1750.146).

Any thoughts/tips on getting the menu to load properly?

Thanks

http://votepaulmckenzie.com/
Joomla 2.5.19
OSX 10.6.8
User avatar
Fresh Boarder

GK User
Mon Mar 10, 2014 7:46 am
Reply with quote
Report this post
Hello,

Please open file js/gk.menu.js and please change the following line:

Code: Select all
var menupos = document.id('gkTopNav').getCoordinates().top + 80;


to:

Code: Select all
var menupos = document.id('gkTopNav').getCoordinates().top;
User avatar
Administrator

GK User
Mon Mar 10, 2014 8:02 am
Reply with quote
Report this post
That fixed it. Thank you.
User avatar
Fresh Boarder

GK User
Mon Mar 10, 2014 8:24 pm
Reply with quote
Report this post
Should i also replace this code in Joomla 3 version of News2 template?
User avatar
Senior Boarder

GK User
Mon Mar 10, 2014 9:27 pm
Reply with quote
Report this post
Thank you for the reply but that didn't fix it for me.

Uncaught TypeError: Cannot read property 'parentNode' of null mootools-core.js:293
w.before mootools-core.js:293
Element.implement.inject mootools-core.js:316
(anonymous function) gk.menu.js:229
e mootools-core.js:367
User avatar
Junior Boarder

GK User
Mon Mar 10, 2014 10:37 pm
Reply with quote
Report this post
Ok, I think it's because I didn't have anything active in toolbar so I changed gk.menu.js around 229

menucontent.inject(document.id('gkToolbar'), 'before');
to
menucontent.inject(document.id('gkBannerTop'), 'bottom');
User avatar
Junior Boarder

GK User
Tue Mar 11, 2014 9:51 am
Reply with quote
Report this post
@indeepblue - in general this fix is necessary only when your main menu is located near than 80 pixels from the top of your website.
User avatar
Administrator

GK User
Thu Apr 24, 2014 8:38 pm
Reply with quote
Report this post
Dear all

I've the same Problem with the menu - but i can't find the code in the gk.menu.js. The only code I find is: <var menupos = jQuery('#gkTopNav').position().top + 80;>

What I did: I did unpublish the search-modul in the Menu-Bar and that is what happen now.

Can anybody help me?

Thanks Max

URL: http://www.grimax.ch
User avatar
Fresh Boarder

GK User
Sat Apr 26, 2014 4:15 pm
Reply with quote
Report this post
@grimax - please try to change in the gk.menu.js file the following line:

Code: Select all
jQuery('#gkToolbar').before(menucontent);


to:

Code: Select all
jQuery('#gkLogo').before(menucontent);
User avatar
Administrator


cron