New Landing How can we help? Themeforest Theme Support Joyn smoothscroll for item on same page

Viewing 13 posts - 1 through 13 (of 13 total)
  • Posted in: Joyn
  • #246346
    makemakes
    Member
    Post count: 120

    I’m trying to use a smoothscroll from one of the buttons in the swiftslider to a row on my page.

    (discover our brands should go to the “our productrange” row, with a bit of spacing so you can see the title underneath the menubar)
    (contact should go to the contact section at the bottom of that page)

    #246697
    David Martin – Support
    Moderator
    Post count: 20834

    Hi,

    In the extra class parameter for the button include “smooth-scroll-link” and it will automatically scroll to the section for you – and take the header height into consideration.

    Thanks.

    #247033
    makemakes
    Member
    Post count: 120

    awesome, thanks, but how do I do it for a navigation/menu item, to smoothscroll down?

    #247064
    David Martin – Support
    Moderator
    Post count: 20834

    Hi,

    Do you mean for within your menu? Your link would need have the section id rather then the link ex: ‘#section-name’.

    Thanks.

    #247065
    makemakes
    Member
    Post count: 120

    Yes , that I have, but i want to add the class to have the *smooth*scroll, how do I do that? ^^

    #247068
    David Martin – Support
    Moderator
    Post count: 20834

    Hi,

    The smooth scroll should work from that. Have you enabled One Page Navigation?

    You can add a class to a menu item, but this applies to the parent li and not the actual link. In Appearance => Menus click the top right “Screen Options” tab and click “CSS Classes”.

    Thanks.

    #247130
    makemakes
    Member
    Post count: 120

    thanks, all seems resolved!

    #247132
    makemakes
    Member
    Post count: 120

    resolved

    #247133
    David Martin – Support
    Moderator
    Post count: 20834

    No problem!

    Thanks,
    David.

    #247171
    makemakes
    Member
    Post count: 120

    Just doublechecked and not resolved 🙁

    When I’m at the homepage, the links do the smoothscroll. But when I’m at another page (for example dealers).

    There the link became agensis.be/dalers/#cntct so that doesn’t work.

    So i tried make inthe link “/#cntct” in the menu , but then the smoothscroll doesn’t work anymore + the item is highlighted constantly as active

    #247174
    David Martin – Support
    Moderator
    Post count: 20834

    You need to use a different menu on the homepage.

    The links can only be #cntct.

    Create two menus, one for the homepage with the smooth scroll links, then another menu for internal pages that need the deep linking.

    Thanks.

    #247194
    makemakes
    Member
    Post count: 120

    Works like a charm, only I can’t find how to changeout the menu on a portfolio item?

    #247209
    David Martin – Support
    Moderator
    Post count: 20834

    For this, please add a new custom field in the portfolio item.

    Name: sf_page_menu
    Value: Menu id (ex: 28), this is found in the Appearance => Menus. Select your menu, in the URL you will see the id: menu=28.

    Thanks.

Viewing 13 posts - 1 through 13 (of 13 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register