Problem with Menu Scroll

Support Forums Cian – WP Theme Problem with Menu Scroll

Tagged: , , ,

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #5174
    Sumit Rathore
    Participant

    I have merged the Menu under one another. So I have put Pricing, features, screenshots as sub menu inside a new menu link.

    Now, when I click on either of these, the “Smooth scrolling” is NOT happening. The page just jumps to that section and also the url is appending with hashvalue

    Like this :- http://localhost:8081/motrss/#spotlight2

    I have not changed the id of these.

    What should I do.

    Secondly, where is the scoll property for showing the Menu. By default the menu is hidden and is shown when we scroll down. Which js file has the property to change the offset value. I want to show the menu bar, as soon the scroll starts. So even if the scroll is just 2 , I need to show the menu bar

    Where to change.

    • This topic was modified 4 years, 7 months ago by Sumit Rathore.
    #5182
    CreaboxThemes
    Keymaster

    Hi,

    about the offset for the nav bar, you can modify the value in the file footer-single.php. Now, the value is 300px. The line code is the next:

    if(jQuery(this).scrollTop() > 310) {

    And about the menu link with scroll down, you have to add the next code in the option Custom JS in the page Appearance > Theme Option > Custom Scripts:

    jQuery('.navbar-nav > li.scrollTo a').bind('click', function(e) {
         e.preventDefault();
         var target = this.hash;
         jQuery.scrollTo(target, 1250, {
              easing: 'swing',
              axis: 'y',
              offset: -45
         });
    });

    Regards

    • This reply was modified 4 years, 7 months ago by CreaboxThemes.
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.