Problem with the 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
Fri Aug 29, 2014 5:03 pm
Reply with quote
Report this post
Hi,
I have a problem with the menu.
In particular, a: active and a: focus.
The first menu item css classes are displayed correctly, while the second and the third etc. no.
When I click on the third menu item is shown as a: active the second item.
When I click on the fourth item on the menu is shown as a: active the third item.
And so to the fourth item.
Best regards
User avatar
Expert Boarder

GK User
Sun Aug 31, 2014 11:27 am
Reply with quote
Report this post
Could you please post an url to your site?
User avatar
Moderator

GK User
Mon Sep 01, 2014 10:28 am
Reply with quote
Report this post
Cyberek wrote:Could you please post an url to your site?

Hi,
http://demo.networks.it/
Regards.
Gioacchino
User avatar
Expert Boarder

GK User
Mon Sep 01, 2014 6:34 pm
Reply with quote
Report this post
It looks like some modification have altered the layout and you need to offset position calculating script.
Please edit file:
templates/gk_john_s/js/gk.scripts.js
and find this part:
Code: Select all
         jQuery(window).scroll(function() {
            var top = jQuery(window).scrollTop();
            
            var current_ranges = menu_activators.ranges.filter(function(range) {
               return range <= top;
            });

and change it to:
Code: Select all
         jQuery(window).scroll(function() {
            var top = jQuery(window).scrollTop();
            
            var current_ranges = menu_activators.ranges.filter(function(range) {
               return range <= top + 10;
            });
User avatar
Moderator

GK User
Tue Sep 02, 2014 9:26 am
Reply with quote
Report this post
Cyberek wrote:It looks like some modification have altered the layout and you need to offset position calculating script.
Please edit file:
templates/gk_john_s/js/gk.scripts.js
and find this part:
Code: Select all
         jQuery(window).scroll(function() {
            var top = jQuery(window).scrollTop();
            
            var current_ranges = menu_activators.ranges.filter(function(range) {
               return range <= top;
            });

and change it to:
Code: Select all
         jQuery(window).scroll(function() {
            var top = jQuery(window).scrollTop();
            
            var current_ranges = menu_activators.ranges.filter(function(range) {
               return range <= top + 10;
            });

Tank you v.m.
Best regards.
Gioacchino
User avatar
Expert Boarder

GK User
Wed Sep 03, 2014 4:16 pm
Reply with quote
Report this post
Is there anything else I can help you with regarding this topic?
User avatar
Moderator

GK User
Wed Sep 03, 2014 7:02 pm
Reply with quote
Report this post
Cyberek wrote:Is there anything else I can help you with regarding this topic?

Hi,
it's ok.
I do not know how to change the first post to add the subjet resolved.
Regards.
Gioacchino
User avatar
Expert Boarder

GK User
Thu Sep 04, 2014 9:19 pm
Reply with quote
Report this post
We usually doesn't do that thing on forum - the topic stays open if someone else will have simillar problem but would like to do something else ;)
If you will have any other questions (not relative to this thread), feel free to post new forum threads - it allows us to answer you faster.
User avatar
Moderator


cron