Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #45798

    Rad
    Moderator

    Hi Shaun,

    There many request about one page navigation fixes for outbound links. So I wrote a simple snippet that at least will work on outbound links.

    Please check this thread :
    http://theme.co/x/member/forums/topic/nav-bar-not-fully-working-on-1-page-scrolling/#post-45754

    Note, menu links should use full url (eg. http://domain.com/#aboutus instead of just #aboutus)

    This is the sum of fixes for various requests from different thread.

    1. Linking to outbound link with scroll effect on target page.
    2. Scrolling for sub-menu.
    3. Don’t scroll when its outbound link, rather navigate to that page.
    4. Menu active status when manually scrolling, auto scrolling, on page load scroll, or scrolling triggered by click.

    Hope this helps.

    #46078

    Happy Cow
    Participant

    Brilliant! Thanks so much!

    The only thing that isn’t working now are the sub menu items linking back to the single page. That may be because I still have the sub menu custom code in there. Should I delete the original sub menu code you gave me? I pasted it below…

    jQuery(function($){

    $(‘.sub-menu a’).click(function(e){

    var hash = $(this).attr(‘href’).split(“#”).slice(-1)[0];
    if( hash ) {
    e.preventDefault();
    $(‘html,body’).animate({ scrollTop: $(‘#’ + hash ).offset().top – $(‘.x-navbar’).height()},700 ,’swing’);
    }

    });

    });

    #46081

    Happy Cow
    Participant

    I think I just answered my own question. I deleted the original sub menu code and only used the new one you gave me and now it works great.

    You guys are awesome!

    Thanks so much!

    On a different note… do you guys offer a developer’s license or something similar for X theme that would allow for multiple uses? Or are we stuck to buying it each time we use it for a client? I’m asking because I really don’t see the need for other themes at this point, given how flexible and powerful X theme is. I could see us using X for most or all of our clients.

    #46279

    Christian
    Moderator

    Hey Shaun,

    You’re welcome and thank you for your kind words.

    The Themeforest extended license for themes cost $3000 (see http://prntscr.com/3kummm). Thank you for using X for your projects.

    God bless and more power to your business.