Fixed menu on page load

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
Wed Dec 09, 2015 9:46 am
Reply with quote
Report this post
Grettings,
I need to make direct on page load to apear the fixed menu, not only apear after scroll down the page. Please advice.
User avatar
Gold Boarder

GK User
Thu Dec 10, 2015 9:19 am
Reply with quote
Report this post
Please support
User avatar
Gold Boarder

teitbite
Thu Dec 10, 2015 3:00 pm
Reply with quote
Report this post
Could you please provide me with a URL to your website, either here or via PM (click the “Private Message” text underneath my avatar) so that I may analyze it? It is a lot easier for us to diagnose issues when we have a live site to examine.
User avatar
Moderator

GK User
Sat Dec 12, 2015 12:43 pm
Reply with quote
Report this post
Any news about ?
User avatar
Gold Boarder

teitbite
Sun Dec 13, 2015 7:48 pm
Reply with quote
Report this post
Hi

Pleas try try edit file /js/gk.menu.js and replace code:

Code: Select all
    jQuery(window).scroll(function() {
        var currentPosition = jQuery(window).scrollTop();
       
        if(currentPosition > menupos && !menuWrap.hasClass('active')) {
            menuWrap.addClass('active');
            menuWrap.find('> div').append(menucontent);
        } else if(currentPosition < menupos && menuWrap.hasClass('active')) {
            menuWrap.removeClass('active');
            if(jQuery('#gkToolbar').length > 0) {
               menucontent.insertBefore(jQuery('#gkToolbar'));
            } else {
               menucontent.insertAfter(jQuery('#gkTopBar'));
            }
        }
    });


with

Code: Select all
    jQuery(window).ready(function() {
            menuWrap.addClass('active');
            menuWrap.find('> div').append(menucontent);
    });
User avatar
Moderator

GK User
Mon Dec 14, 2015 2:06 pm
Reply with quote
Report this post
Thank you very much for your support !
User avatar
Gold Boarder

teitbite
Thu Dec 17, 2015 11:04 am
Reply with quote
Report this post
Hi

Glad I could help.
---
If You were satisfied with our support please let other users know on Twitter: http://twitter.com/gavickpro or Facebook: http://www.facebook.com/gavickpro
User avatar
Moderator

GK User
Sun Jun 05, 2016 1:09 pm
Reply with quote
Report this post
Hi i have tried this and its good but it takes a while to load up, which is not good for me.
Is there a way to make it fixed instantly and not show the normal menu just the fixed version?

Thanks
User avatar
Junior Boarder

teitbite
Tue Jun 07, 2016 7:12 pm
Reply with quote
Report this post
Hi

My code does nothing which can cause slower load. Please remind me the url to Your site so I'll run a scan to see what is slowing it down actually.
User avatar
Moderator


cron