Okay
  Public Ticket #333498
Can you use one page scrolling links also on buttons?
Closed

Comments

  • Matthy started the conversation

    One page scrolling works when i put the # links in the menu bar but i can't get them to work when using the link in the button.

    [button color="see-through" hover_text_color_override="#fff" image="default-arrow" size="medium" url="#video" text="Video" color_override="#ffffff"]

    it goes straigth trough it. As extra informatie i put the button in the nectar slider (see image: http://pbrd.co/1x2Eiyb)

    Am i doing something wrong or is it only compatible with above menu?

    thx

  •  8,454
    Tahir replied

    Hey!

    For that you will have to edit the "Salient/js/init.js" . Please see screenshot: http://prntscr.com/5fk1ty

    Thanks 


    ThemeNectar Support Team 

  • Matthy replied

    Hi Tahir, should i only change the thing to star? my code looks a little bit different, but i gues you guys are working hard under the motor. However it is not working, cleared the cache to prevent old code still running.

    /* one page scrolling */

    function scrollSpyInit(){

    $('body').scrollspy({

    target: '*',

    offset: $('#header-outer').height() + adminBarHeight + 15

    });

    }

  •  8,454
    Tahir replied

    Yes you need to change the target to "Asterisk" Star only and it should work for every button on the site. 

    Thanks 


    ThemeNectar Support Team 

  • Matthy replied

    Weird it does not work, well its no big problem, thx anyway.