Viewing 5 posts - 1 through 5 (of 5 total)
  • Posted in: Dante
  • #37159
    ravravrav
    Member
    Post count: 2

    Hi great theme, very impressed by it.

    I’d like to add a ‘sticky menu’ to some of my pages – ie. when the user scrolls down the menu (which will be a div of icons) will stay at the top of the page.

    The theme already uses this for the main menu bar so I’d just like to know how to do I use this for my own menu or div? I am guessing I need to add some custom js but can you help with what it needs to be please?

    Thanks!

    #37282
    ravravrav
    Member
    Post count: 2

    Hi would really appreciate some quick help here!

    I’ve made a box and given it a class name of ‘sticky2’

    Then in the custom JS box I’ve added

    <script>
    $(document).ready(function(){
    $(“.sticky2”).sticky({ topSpacing: 100 });
    });
    </script>

    But it doesn’t seem to be working. I’ve checked and the code is being added to the WordPress Footer hook so not sure why it’s not running.

    Any help much appreciated!

    #37362
    Tahir – SUPPORT
    Member
    Post count: 1212

    Hi,
    Can you provide url so we can take a look. Are there any JS or console errors ?.

    Thanks
    Tahir

    #37389
    ravravrav
    Member
    Post count: 2
    #37714
    Tahir – SUPPORT
    Member
    Post count: 1212

    Hi,
    I am afraid it is not as simple as it seems. There is already the header element on the page so you cant simply create a div and assign an id to make it work. So i am afraid its not possible.

    Thanks
    Tahir

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

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

License required for the following item
Login and Registration Log in · Register