Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1159705
    Mohannad
    Participant

    Hi,

    When I click on (one page navigation) it jump immediately to the section with out showing any scrolling down or up effects.

    WordPress version 4.6
    X themes 4.6.1
    Cornerstone 1.3.1

    http://renewedbuy.com/

    #1160105
    Rue Nel
    Moderator

    Hello There,

    Thanks for writing in! You could try testing for a plugin conflict. You can do this by deactivating all third party plugins, and seeing if the problem remains. If it’s fixed, you’ll know a plugin caused the problem, and you can narrow down which one by reactivating them one at a time.

    If nothing else works, would you mind providing us the ftp login credentials so we can take a closer look? This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your credentials, we will be happy to assist you with everything.

    To do this, you can make a post with the following info:
    – Link to your site

    – WordPress Admin username / password
    – FTP Hostname
    – FTP Username
    – FTP Password

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    Thank you.

    #1164008
    Mohannad
    Participant
    This reply has been marked as private.
    #1164023
    Mohannad
    Participant

    Hi, suddenly After I updated Themeco to 4.6.2 google map not working any more
    Thank you

    #1164338
    Paul R
    Moderator

    Hi,

    Please add your google api key.

    http://screencast.com/t/OGdsmkOx0

    With regards to scroll, I was able to fix it by adding this in your custom > Edit Global javascript

    
    jQuery(document).ready(function($) {
    
      var $body                = $('body');
      var bodyHeight           = $body.outerHeight();
      var adminbarHeight       = $('#wpadminbar').outerHeight();
      var navbarFixedTopHeight = $('.x-navbar-fixed-top-active .x-navbar').outerHeight();
      var locHref              = location.href;
      var locHashIndex         = locHref.indexOf('#');
      var locHash              = locHref.substr(locHashIndex);
    
      //
      // Calculate the offset height for various elements and remove it from
      // the element's top offset so that fixed elements don't cover it up.
      //
    
      function animateOffset( element, ms, easing ) {
        $('html, body').animate({
          scrollTop: $(element).offset().top - adminbarHeight - navbarFixedTopHeight + 1
        }, ms, easing);
      }
    
      //
      // Page load offset (if necessary).
      //
    
      $(window).load(function() {
        if ( locHashIndex !== -1 && $(locHash).length ) {
          animateOffset(locHash, 1, 'linear');
        }
      });
    
      //
      // Scroll trigger.
      //
    
      $('a[href*="#"]').on('touchstart click', function(e) {
        $href            = $(this).attr('href');
        notComments      = $href.indexOf('#comments') === -1;
        notAccordion     = $href.indexOf('#collapse-') === -1;
        notTabbedContent = $href.indexOf('#tab-') === -1;
        if ( $href !== '#' && notComments && notAccordion && notTabbedContent ) {
          var theId = $href.split('#').pop();
          var $el   = $('#' + theId);
          if ( $el.length > 0 ) {
            e.preventDefault();
            animateOffset($el, 850, 'easeInOutExpo');
          }
        }
      });
    
      //
      // Initialize scrollspy.
      //
    
      if ( $body.hasClass('x-one-page-navigation-active') ) {
    
        $body.scrollspy({
          target : '.x-nav-wrap.desktop',
          offset : adminbarHeight + navbarFixedTopHeight
        });
    
        //
        // Refresh scrollspy as needed.
        //
    
        $(window).resize(function() {
          $body.scrollspy('refresh');
        });
    
        var timesRun = 0;
        var interval = setInterval(function() {
          timesRun += 1;
          var newBodyHeight = $body.outerHeight();
          if ( newBodyHeight !== bodyHeight ) {
            $body.scrollspy('refresh');
          }
          if ( timesRun === 10 ) {
            clearInterval(interval);
          }
        }, 500);
    
      }
    
    });
    
    #1164480
    Mohannad
    Participant

    Thank you Paul,

    The code works fine on chrome browser but did not work using IE and Edge.

    #1165227
    Rad
    Moderator

    Hi there,

    It’s scrolling smoothly on my end, please clear your browser cache before testing. For the meantime, please provide a video recording of what you’re currently getting.

    Thanks!

    #1169067
    Mohannad
    Participant
    This reply has been marked as private.
    #1169503
    Rad
    Moderator

    Hi there,

    It works smoothly on my IE and Edge. Can you try removing this code?

      //
      // Initialize scrollspy.
      //
    
      if ( $body.hasClass('x-one-page-navigation-active') ) {
    
        $body.scrollspy({
          target : '.x-nav-wrap.desktop',
          offset : adminbarHeight + navbarFixedTopHeight
        });
    
        //
        // Refresh scrollspy as needed.
        //
    
        $(window).resize(function() {
          $body.scrollspy('refresh');
        });
    
        var timesRun = 0;
        var interval = setInterval(function() {
          timesRun += 1;
          var newBodyHeight = $body.outerHeight();
          if ( newBodyHeight !== bodyHeight ) {
            $body.scrollspy('refresh');
          }
          if ( timesRun === 10 ) {
            clearInterval(interval);
          }
        }, 500);
    
      }

    Thanks!

    #1179145
    Mohannad
    Participant

    Hi Rad,

    When I removed the above code, The scrolling effect stop working.

    thank you,

    #1179177
    Rue Nel
    Moderator

    Hello Again,

    This could be just a browser caching issue in your IE or Edge. I would suggest that you clear your browser cache or use the Private mode browsing and test your site again. To refresh your cache, please check out this links:
    http://refreshyourcache.com/en/windows/
    http://refreshyourcache.com/en/internet-explorer-11/
    http://acer–uk.custhelp.com/app/answers/detail/a_id/38047/~/microsoft-edge%3A-how-to-clear-browser-history-and-cache

    Hope this helps.

    #1179261
    Mohannad
    Participant

    Hi ,

    I solved the problem ,by coping the jQuery in two places

    1-cornerstone-> custom js

    2-appearance-> customize -> edit java global script

    if I removed the script from one of above places it will immediately start working in funny way using IE & Edge, But now it is working smoothly when I kept the script in the two places .

    it’s better if you forward this issue to your developer team, to solve this incompatibility in future.

    Thank you ,

    #1179599
    Rad
    Moderator

    Sure, will forward that. Thanks!

    #1179937
    Mohannad
    Participant

    Hi ,
    ubermenu plugin it was causing the problem, jQuery code not required, the moment I disabled ubermenu every thing work perfectly with out the code in all browser.

    thank you

    #1179985
    Rue Nel
    Moderator

    Hello There,

    We are just glad that you have figured it out a way to correct the said issue.
    Thanks for letting us know!

    Best Regards.

  • <script> jQuery(function($){ $("#no-reply-1159705 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>