Okay
  Public Ticket #366693
Jumping to an Anchor on Another Page only not working in Firefox
Closed

Comments

  • Mariusz started the conversation

    Hallo, i really do not know how does it happened but my anchor point not working properly in Firefox anymore. On Chrome and Safarfi works all fine. You need to go from Startseite in bottom position were you find the second News were is \"Mehr erfahren\". The link schould jump to anchor point \"news\" but the link take you only to the bottom position on News site. But when you allredy are on News site you can write in URL: http://myworkflow.info/de/news#news

    and than anchor works.

  •  1,075
    ThemeNectar replied

    Hey,

    Have you tried deactivating any new third party plugins and updating the theme?

    Cheers

  • Mariusz replied

    I have updated Template to version 5.0 and i have tryed to disable some 3 part plugins but witchout any positive results:(

  •  8,848
    Tahir replied

    Hey Again!

    Can you try deactivating all plugins and test.

    Thanks


    ThemeNectar Support Team 

  • Mariusz replied

    hi, i disabled all 3 part plugins and still nothing:(

  •  8,848
    Tahir replied

    Hey Again!

    Have you changed the target in here : http://prntscr.com/63cp6q .

    Thanks


    ThemeNectar Support Team 

  • Mariusz replied

    i have this:

    /* one page scrolling */
    function scrollSpyInit(){



    //remove full page URLs from hash if located on same page to fix current menu class
    $("#header-outer a[href*='" + location.pathname + "']").each(function(){
    var $href = $(this).attr('href');
    if($href.indexOf("#") != -1) {
    $(this).attr('href',$href.substr($href.indexOf("#")));
    $(this).parent().removeClass('current_page_item').removeClass('current-menu-item');
    }
    });


    $('body').scrollspy({
    target: '*',
    offset: $('#header-outer').height() + adminBarHeight + 15
    });
    }

  • Mariusz replied

    allright i found it. The working code is:

    /* one page scrolling */
    function scrollSpyInit(){


    //remove full page URLs from hash if located on same page to fix current menu class
    if(location.pathname.length > 1) {
    $("#header-outer a[href*='" + location.pathname + "']").each(function(){
    var $href = $(this).attr('href');
    if($href.indexOf("#") != -1) {
    $(this).attr('href',$href.substr($href.indexOf("#")));
    $(this).parent().removeClass('current_page_item').removeClass('current-menu-item');
    }
    });
    }



    $('body').scrollspy({
    target: '#header-outer nav',
    offset: $('#header-outer').height() + adminBarHeight + 15
    });
    }