This website uses cookies to personalise ads and to analyse traffic ok
web design

Page scroll to id for WordPress

 

Knowledge Base – FAQ

Topics: General WordPress Menu Links highlighting Links Targets Page scrolling Offset jQuery/Javascript

 

Pages: 1 2


630 Comments

Post a comment

Comments pages: 1 5 6 7

  1. Linda McColley
    Posted on July 5, 2020 at 06:42 Permalink

    I’d like a different delay on the homepage only. Is there a code alteration I can use for that one instance?

    Thank you!
    Linda

    Reply
    • Linda McColley
      Posted on July 5, 2020 at 06:44 Permalink

      I forgot to say that I love this plugin!

      I also had one more question.

      Is there a way to make each of the pages automatically scroll even coming from a url typed in the browser? Or especially the homepage upon first load.

      Right now it is just when you click home. I would like for it to be all the time.

      Thank you!!!

      Reply
    • malihu
      Posted on July 5, 2020 at 17:26 Permalink

      Hi,

      What do you mean by delay? Which option?

      Also can you explain a bit more the automatic scroll you want? Can you give me an example?

      Reply
  2. [email protected]
    Posted on July 1, 2020 at 15:43 Permalink

    Hello,
    This plugin is great. Thank you so much.

    I am using Bridge and have managed to put in the code to make the mobile menu clear. The navigatio works perfectly on desktop but for some reason when it’s jumping from another page to a point on the home page it’s no longer scrolling down. So if you click onto ‘Technical Information’ which is the only stand alone page and then back to ‘about’ the scrolling has stopped working only on mobile. Do you know why this might be?

    This is the script I put in the footer to clear the mobile overlay but maybe there is still an error in it:

    (function($){
    $(window).on(“load”,function(){
    $(document).on(“click”,”#main-menu .menu-item ._mPS2id-h”,function(){
    $(“button.mfp-close”).trigger(“click”);
    });
    });
    })(jQuery);

    Thank you

    Reply
    • malihu
      Posted on July 1, 2020 at 22:43 Permalink

      Hello,

      The script is correct 😉

      Try to give a delay for the page load scrolling. Go to plugin settings and insert 500 to the delay for scrolling to target on page load field.

      Save changes and test your page.

      If it doesn’t work, try few higher values like 1000 or 2000.

      Reply
      • [email protected]
        Posted on July 2, 2020 at 10:58 Permalink

        Hello, thank you for your reply. I already have 1000 in that field. It shows an obvious pause before scrolling on desktop but doesn’t move on the mobile unfortunately.

        Reply
        • [email protected]
          Posted on July 2, 2020 at 11:24 Permalink

          I’m so sorry – I’ve just checked everything again and the option to disable the plugin below 720 pixels was on. Thank you again for your support.

          Reply
          • malihu
            Posted on July 2, 2020 at 12:15 Permalink

            No problem 🙂

  3. Christian
    Posted on June 29, 2020 at 13:03 Permalink

    Hi,
    thanks for the great plugin!

    Can I put the “Next Section Link” in a sticky area?
    By clicking on the link the script scrolls to the next section?

    Which settings in WordPress are necessary?

    See also https://codepen.io/awkdigi/pen/qBbPmPg

    Reply
    • malihu
      Posted on June 30, 2020 at 09:30 Permalink

      Hi,

      This is not something that can be done automatically or via some plugin option.

      You’d need to develop a custom js script that utilizes plugin’s scrollTo method. In other words, you’d need to hire a web developer to create such functionality, which would be specific for your site.

      Hope this helps

      Reply
  4. Bart
    Posted on June 26, 2020 at 15:00 Permalink

    Hello

    I implemented your plugin and it works fine. It’s just that the scrolling doesn’t always go super smoothly, especially on longer stretches it . I already played with the settings and did also reset them, but the problem keeps being there.

    If you would have to have a look, that would be great. Maybe it’s something small.

    Thanks
    Bart

    Reply
    • malihu
      Posted on June 26, 2020 at 19:19 Permalink

      Hello,

      Scrolling performance can be affected from a lot of things like amount of same-page links, CSS styling (e.g. css box-shadow), other scripts etc. as well as browser engine, OS, device etc.

      Try the following and see if it makes things better:

      Since you don’t use plugin’s highlight feature, go to plugin settings and set the following value to “Highlight selector(s)”:

      .nothing

      Also, you can try enabling “Prevent other scripts from handling plugin’s links” option.

      Let me know

      Reply
  5. Marcel Hauer
    Posted on June 23, 2020 at 10:35 Permalink

    Hi!

    After my WordPress update this plugin leads to following error message: “Deprecated: contextual_help is deprecated since version 3.3.0! Use get_current_screen()->add_help_tab(), get_current_screen()->remove_help_tab() instead. in /home/bodybabm/www.craftkoerper.com/wp-includes/functions.php on line 5088”.

    After deactivating the plugin, the message vanishes. Du you have any fixes for this?

    Thank you man! 🙂

    Reply
  6. eric
    Posted on June 10, 2020 at 17:25 Permalink

    When scrolling to the target, the .mPS2id-highlight class is not forced to a link! As a result, only when you click on the link, it can change its appearance. If you simply scroll through the content, the link does not change the appearance. In this case, the .mPS2id-target class works fine.

    Link: http://visitechtest.ru.xsph.ru/%d1%86%d0%b8%d1%84%d1%80%d0%be%d0%b2%d0%be%d0%b9-%d0%bd%d0%b0%d1%80%d1%8f%d0%b4-%d0%b4%d0%be%d0%bf%d1%83%d1%81%d0%ba-new/

    Reply
  7. Sophie
    Posted on June 5, 2020 at 14:26 Permalink

    We love your plugin but it seems to have a major site-breaking conflict with the latest version of WPDiscuz, and we have been forced to disable it.

    Is there a workaround possible?

    Reply
    • malihu
      Posted on June 5, 2020 at 15:55 Permalink

      Hi,

      What conflict? Can you explain the issue?

      “Page scroll to id” cannot really “break” a site and most issues can be easily fixed via plugin settings. Can you describe the problem so I can help?

      Reply
      • Sophie
        Posted on June 5, 2020 at 17:13 Permalink

        When the scroller is enabled the comments load very very slowly or simply hang up, and the scroller itself becomes jerky and a bit irrational.

        We were surprised about this too, as we didn’t anticipate anything like this from such a relatively simple plugin – but we’ve tested it repeatedly, and whenever we disable scroller the comments load fine, as soon as it’s enabled – bam, everything goes pear shaped again.

        We do get quite a lot of comments.

        Note – this only started happening since WPDiscuz newest iteration was installed. It was fine with earlier versions.

        Reply
        • malihu
          Posted on June 5, 2020 at 18:59 Permalink

          OK thanks for the info.

          This sounds like there are a lot of link-target relations (from WPDiscuz) that get eligible for highlighting by “Page scroll to id”.

          I just checked a random page in your site and there’s something like 200 link-targets from WPDiscuz (links like <a href="#comment-185873"> with targets).

          “Page scroll to id” by default will try to highlighting all these links! That’s why the page hangs.

          When you activate the plugin, go to “Page scroll to id” settings and set a specific selector value in “Highlight selector(s)” option, for example:

          .menu-item a[href*='#']

          to have only menu links highlighted or something like

          .nothing

          if you don’t use plugin’s highlight feature.

          So, set a “Highlight selector(s)” value, save changes and test you page.

          You could also just exclude the links-targets that are in WPDiscuz section by adding the following value at the end of “selectors are excluded” field in plugin settings (just copy/paste the line below, including the comma at the start)

          , #wpdcom a

          Again, save changes and test your page(s).

          Let me know 🙂

          Reply
          • Sophie
            Posted on June 6, 2020 at 01:16 Permalink

            Thanks for your really fast response.

            I have tried the exclude option and setting a specific selector value.

            It definitely seems smoother and faster at the moment. Still a bit juddery when the link from top menu to comments section is clicked but so far it’s now functioning while before it wasn’t

            So this is looking good so far.

          • Sophie
            Posted on June 6, 2020 at 16:37 Permalink

            Yeah, there are still issues. The scroll is still jerky – especially in Safari. And oddly, it seems to get worse the longer it’s running.

            I had to disable it again.

            Any further ideas?

        • malihu
          Posted on June 6, 2020 at 17:18 Permalink

          Thanks for the feedback. Can you set a more specific selector value on “Selector(s)” option?

          For example set:

          .menu-item a

          if you use the plugin only on menu items.

          Reply
  8. joe
    Posted on June 5, 2020 at 05:44 Permalink

    Hello, awesome plugin man, quick question.

    I cant get it to scroll, it just jumps to the section and also doenst allow for me to adjust offset.

    Im using the bridge theme and chance you know if there are conflicts?

    Reply
    • malihu
      Posted on June 5, 2020 at 12:58 Permalink

      Hello,

      It seems that your theme handles all menu links with a URL in the form of #id.

      The theme script that does this prevents “Page scroll to id” (or similar plugins) from doing its thing, as it hijacks all menu links clicks.

      For reference, the script that does this is this one:
      ...themes/bridge/js/default.min.js

      Fortunately, the theme script does this only on links that have a URL that starts with a hash (#) or with your site’s URL, so the quick and easy solution is to make your menu links URL absolute-relative.

      For example, change your “About” link URL from:

      #about

      to:

      /#about

      and smooth scrolling, offset etc. will work.

      Do the same for the rest of your links.

      Let me know

      Reply
      • joe
        Posted on June 5, 2020 at 21:22 Permalink

        That did the trick! Thanks again

        Reply
        • joe
          Posted on June 6, 2020 at 03:48 Permalink

          one more question.

          When i load the site it seems that the first 1 0r 2 times I click the menu links it scrolls past the location. Then if i click again it moves to the right spot. After that they all work correctly. Any idea why. Is the min.js file still messing things up?

          Reply
          • malihu
            Posted on June 6, 2020 at 11:47 Permalink

            This happens because your site is lazy-loading the images.

            Lazy-loading images will affect page scrolling, no matter which plugin you’re using. In fact, you,’ll have the same issue even if you don’t use any smooth scrolling plugin. You can test this by temporarily deactivating “Page scroll to I’d” and testing your links (the page will jump to the wrong place at first).

            You need to disable lazy-loading your images or add a correct/fiixed height on the images placeholder.

            Hope this helps

  9. Marcela Caso
    Posted on June 2, 2020 at 13:23 Permalink

    First of all I want to thank you for your job, you made my day! Because if you see this test website, it has 3 anchor menu and a page ( noticias) before when I was in “noticias” I was not able to recover the anchor in for example contact . Now it WORKS!
    But I have a problem when I came for came from Noticias-> to Como aplico al programa, I am not able to see the title (Requisitos para aplicar al program) , on the contrary if I am in the Inicio and then I go to como aplico al programa I am able to see the title.
    Also if I go directly to the link ( in google bar) http://bamp.elearningspecialenglish.com/#testimonials ( this is the archor for Como aplico al programa) I don´t see the title.

    Maybe is the setting I am not very used to the anchor menu . I really appreciate any help

    Bye for now
    Marcela

    Reply
    • malihu
      Posted on June 4, 2020 at 08:36 Permalink

      Hello,

      Go to plugin settings and:

      1. Set the “Offset” option value to:

      #main-nav:fixed

      2. Enable “Prevent other scripts from handling plugin’s links” option.

      Save changes and test your page.

      Let me know

      Reply
      • Marcela
        Posted on June 4, 2020 at 09:30 Permalink

        Thank YOU!!!!!! It works ! I really appreciatte so much!

        Reply
  10. karakonda
    Posted on May 23, 2020 at 17:33 Permalink

    Thanks for doing such an amazing work with both creating this plugin and helping ppl fix plugin related problems. Truly appreciated!
    I do have a question too: Is it possible for a link (in my case it’s main menu) you click on not to have the rectangular dotted border after the mouse is moved?

    Thanx,

    Karakonda

    Reply
    • malihu
      Posted on May 23, 2020 at 18:06 Permalink

      Hello,

      The plugin does not add any dotted borders or any other styling on links, unless you manually add a CSS styling.

      I think that the dotted border you’re referring is applied by your theme’s CSS and it’s either an indicator of the current page or maybe the link’s outline on focus.

      I can’t really say what exactly happens or provide a CSS solution for this as I’d need to see your page. Can you post your site’s URL?

      Perhaps adding the following to your CSS can help(?)

      a, a:focus, a:active{ outline: 0 !important; }

      Reply
      • Karakonda
        Posted on May 25, 2020 at 14:12 Permalink

        Thank you for the quick response.
        I tried the CSS you suggested, it didn’t work, but since the outline isn’t added by the plugin I’ll try to find a solution elsewhere.
        Thanks again,
        Karakonda

        Reply
  11. Eric
    Posted on May 22, 2020 at 16:35 Permalink

    When scrolling to the target, the .mPS2id-highlight class is not forced to a link! As a result, only when you click on the link, it can change its appearance. If you simply scroll through the content, the link does not change the appearance. In this case, the .mPS2id-target class works fine.

    Reply
    • malihu
      Posted on May 22, 2020 at 16:40 Permalink

      Hello,

      Can you post your site’s URL so I can check what happens?

      Do you have “Allow only one highlighted element at a time” option enabled while having multiple menus?

      Reply
      • eric
        Posted on June 10, 2020 at 17:29 Permalink

        Hi. The link is not sent by message. Maybe it gets into spm?

        Reply
        • malihu
          Posted on June 10, 2020 at 22:15 Permalink

          Indeed it went to spam!

          I just checked your page and you just need to set a specific highlight selector.

          Go to plugin settings and set the “Highlight selector(s)” option to:

          .menu-item a

          Save changes and test your page.

          Let me know

          Reply
          • eric
            Posted on June 12, 2020 at 19:44 Permalink

            Does not help

        • malihu
          Posted on June 12, 2020 at 20:25 Permalink

          Did you changed other options?

          Go to plugin settings and disable “Allow only one highlighted element at a time” and “Highlight by next target” options.

          Save changes and let me know

          Reply
          • erickorrado
            Posted on June 13, 2020 at 16:27 Permalink

            applied everything, nothing helps. Can I send you screenshots of the settings?

        • malihu
          Posted on June 13, 2020 at 17:00 Permalink

          Ok, the issue seems to come from the UTF-8 URL encoding.

          Can you change your links URL to the actual Russian characters? For example, change “Почему ЭНД?” link URL from:

          http://visitechtest.ru.xsph.ru/%d1%86%d0%b8%d1%84%d1%80%d0%be%d0%b2%d0%be%d0%b9-%d0%bd%d0%b0%d1%80%d1%8f%d0%b4-%d0%b4%d0%be%d0%bf%d1%83%d1%81%d0%ba-new/#section-2

          to:

          http://visitechtest.ru.xsph.ru/цифровой-наряд-допуск-new/#section-2

          Let me know

          Reply
          • eric
            Posted on June 15, 2020 at 14:11 Permalink

            Thanks, now everything works fine!

          • eric
            Posted on June 16, 2020 at 23:10 Permalink

            Another problem arose. If you click on the link, then when scrolling the active class remains of the previously clicked link, even though the transition to another section has occurred. The active class only changes if you click on the following link. Although if you just scroll, without clicking, the active class changes normally.

          • eric
            Posted on June 16, 2020 at 23:12 Permalink

            I realized that the mPS2id-clicked class is not automatically removed

        • malihu
          Posted on June 17, 2020 at 14:00 Permalink

          The mPS2id-clicked class is applied on the clicked elements. That’s why it’s not removed when scrolling.

          You should use the mPS2id-highlight class in your CSS to style your links while scrolling and changing sections.

          See more info about the classes in the “Classes & highlight options” section above

          Reply
          • eric
            Posted on June 17, 2020 at 15:24 Permalink

            now everything is fine, thanks!

  12. John Spray
    Posted on May 21, 2020 at 21:30 Permalink

    when i want save the changes this show a 404 page

    Reply
    • malihu
      Posted on May 21, 2020 at 21:58 Permalink

      Do your other plugins save changes?
      Can you save changes in WordPress general settings?

      Did you try deactivating/uninstalling “Page scroll to id” and install/activate it again?

      Reply
  13. Federico
    Posted on May 19, 2020 at 14:09 Permalink

    First at all thank you very much for such lovely plugin!

    How can I set it up to doesn´t make reloading the page everytime a new menu-id link is selected?

    I didn´t check where I m wrong, when I have used it before it worked fine

    any suggestions will be appreciated!

    Federico

    Reply
    • malihu
      Posted on May 19, 2020 at 14:55 Permalink

      Hello,

      Your links URL is not correct. There’s no willkommen page in your site, so you need to remove it from your links URL.

      Also some of your links have a double slash that should be removed.

      For example, change your “Über uns” link URL from:

      /willkommen//#about

      to:

      /#about

      Let me know

      Reply
      • Federico
        Posted on May 19, 2020 at 17:13 Permalink

        Hi thank you you right, i moved the website to one folder to another and i was such kind of error by my side

        Now it looks great!

        Just in the Home page scroll automatically to the first target #willokommen .

        How can i set it up to don´t let it do it automatically, but only once user click on it and let first the slider been watched?

        thank you Malihu

        Reply
  14. Kelley
    Posted on May 14, 2020 at 07:17 Permalink

    How do I get this to just scroll lower on the same page without reloading the whole page, then scrolling down?
    Thanks

    Reply
    • malihu
      Posted on May 14, 2020 at 16:13 Permalink

      The plugin does not reload the page unless the link URL does not match the actual page URL. If the page reloads, your link’s URL is not correct (make sure your not missing www, https etc.).

      Please post your site URL so I can check what the issue is and help.

      Reply
  15. Eric LUCAS
    Posted on April 25, 2020 at 04:51 Permalink

    Hello, thank you very much for your nice plugin scroll2id which in theory is exactly what I need.
    I want the users to see the BuddyPress header image and title for a few seconds, and then the page would scroll very smoothly to the menu (#object-nav), so that they won’t be frustrated.
    Currently the smooth effect does not work.
    I tried various ways during a lot of time…
    You can see that here : https://autistance.org/groups/dep-cris_covid-19/#object-nav

    I have put a “body onload” in header.php, because it’s the only trick that I found. I don’t know anything in PHP.

    <meta charset=&quot;"> <body onload=&#039; location.href=&quot;#object-nav&quot; &#039; > <a href="#content" rel="nofollow"></a>

    I’m sorry but I could not do “better” and in fact I tried (sometimes) during months…

    Thanks a lot if you can tell me how to solve this. I can put PHP “snippets”.

    Thank you.

    Reply
    • malihu
      Posted on April 25, 2020 at 23:36 Permalink

      Hi,

      You should remove the onload attribute on the body element.

      You should also change all your links with empty URL from:

      http://#

      to:

      #

      otherwise you get invalid errors and the links go to empty pages.

      Do you want the scrolling to #object-nav happen when you go to /dep-cris_covid-19/#object-nav or when you go to /dep-cris_covid-19/

      For the first case, you need to go to plugin settings and set the “delay for scrolling to target on page load” option field to something like:

      2000

      which is 2 seconds.

      For the second case, you’ll need to use plugin’s scrollTo method in your script:

      $.mPageScroll2id("","#object-nav");

      for example, adding the script below will smoothly scroll the page to #object-nav after 2 seconds after the page is fully loaded:

      <script> (function($){ $(window).on("load",function(){ setTimeout(function(){ $.mPageScroll2id("","#object-nav"); },2000); }); })(jQuery); </script>

      The script above should be placed in your theme/child-theme footer.php just before the closing body tag (</body>).

      Hope this helps

      Reply
  16. Dominic
    Posted on April 24, 2020 at 12:32 Permalink

    Hi, your plugin works perfectly normally, however when I have a URL with a query appended (eg. to show the customer source, like sellyourjewels.com/?source=facebook) the plugin ceases to function. Is there a way around this?

    Many thanks,
    Dominic

    Reply
    • malihu
      Posted on April 24, 2020 at 13:26 Permalink

      Hi,

      Not sure I understood the issue, but the following URL works as expected:

      https://www.sellyourjewels.com/?source=facebook#what

      Can you explain a bit more the issue you’re having?

      Reply
      • Dominic
        Posted on May 7, 2020 at 13:15 Permalink

        Hi, sorry for the delay in replying – the scrolling effect that shows with a URL query (like sellyourjewels.com/?source=facebook) is built-in to the wordpress theme I use, but this does not have the smooth easeInOutQuint effect that is present with a normal URL like sellyourjewels.com. Is there a way to ensure the scrolling effect is always your smooth one and not the standard plugin one? Hope that makes more sense.

        Reply
        • malihu
          Posted on May 7, 2020 at 16:12 Permalink

          I don’t see any scrolling effect when I type https://www.sellyourjewels.com/?source=facebook in the browser. Do you see one?

          In any case, when there’s no hash (#something) in the URL, the plugin cannot scroll automatically (i.e. there’s no target to scroll to!).

          To scroll on page load programmatically, you’d need to develop a custom script to use plugin’s scrollTo method.

          Reply
          • Dominic
            Posted on May 7, 2020 at 18:13 Permalink

            Sorry, I didn’t explain myself very well. When navigating to my website with a URL query (eg. https://www.sellyourjewels.com/?source=facebook) and then clicking on the menu items at the top (eg, ‘How does it work?’), the scrolling effect is provided by the WordPress theme and not your plugin.

        • malihu
          Posted on May 7, 2020 at 18:44 Permalink

          I see. This happens because of the full URL in the links not matching the actual URL in the address bar when ?source=facebook is present.

          Does the ?source=facebook part occur only on the homepage? Can you add a small js script in your child theme template?

          Reply
          • Dominic
            Posted on May 7, 2020 at 19:55 Permalink

            Hi, yes it is only the homepage where I use these tracking links. And that would not be a problem, although I am not very proficient in js.

        • malihu
          Posted on May 7, 2020 at 21:48 Permalink

          OK. Do this:

          Edit your theme’s/child-theme’s footer.php template and add the following script before the closing body tag:

          <script> (function($){ $(document).ready(function(){ var loc=window.location.href; if($("body.home").length && loc.indexOf("?source=facebook") !== -1){ $("a[data-ps2id-api]").each(function(){ var $this=$(this), href=$this.attr("href"); if(href.indexOf("https://www.sellyourjewels.com#") !== -1){ $this.attr("href",href.replace("https://www.sellyourjewels.com","https://www.sellyourjewels.com?source=facebook")); } }); } }); })(jQuery); </script>

          Let me know if it works

          Reply
          • Dominic
            Posted on May 7, 2020 at 22:21 Permalink

            That’s perfect, many thanks for your help!

        • malihu
          Posted on May 7, 2020 at 22:39 Permalink

          Awesome! Thanks a lot for your review 🙂

          Reply
  17. Jon
    Posted on April 20, 2020 at 19:37 Permalink

    Hi, I’m having trouble with multiple highlighted menu bars. I am also having issues with the page reloading on every click vs just a smooth scroll if I’m on the same page. Thank you for you’re help and thank you for making this awesome plugin

    Reply
  18. Straktor Media
    Posted on April 19, 2020 at 17:57 Permalink

    Hi. I was wondering if i can use it with a horizontal scrolling page? Although there is an option in the settings, it doesn’t seem to work on my website.
    By the way, it is not a horizontal scrolling theme by default. It’s an Astra theme that im working with Elementor and some custom CSS to make it horizontal.
    Any help on that would be super appreciated.
    Thanks in advance!

    Reply
    • malihu
      Posted on April 20, 2020 at 17:08 Permalink

      Hello,

      The plugin does not change your theme/page from vertical to horizontal. You need to have a theme with horizontal layout so the plugin can do its thing.

      You also need to keep in mind that the plugin works strictly on document’s root element (html/body), meaning the scrollbar should not be on overflowed container div elements.

      If you want to see a simple horizontal layout to get an idea on the CSS used, check this example:

      http://manos.malihu.gr/repository/page-scroll-to-id/demo/demo-horizontal-layout.html

      Once you’ve made your theme horizontal, you simply need to go to plugin settings and set the “Layout” option to “horizontal” or “auto”.

      Reply
  19. Pinwheelin
    Posted on April 2, 2020 at 20:59 Permalink

    Hi there,

    Thanks for making such an easy to use plugin! This site has jump links on many pages and most of them are working perfectly. One thing I’ve run into that I can’t quite determine the issue for:

    When scrolling to the ‘Youth Grant Initiative’ target from the box on the far right, the first time after the page loads, it goes to the incorrect location (landing in the ‘Al Tauscher’ section above). However, on a second try, or any try after that, it goes to the correct spot, with no changes to the offset settings or placement of the target.

    I couldn’t seem to find other people having this same issue to troubleshoot… any ideas?

    Thank you!

    Reply
    • malihu
      Posted on April 3, 2020 at 09:59 Permalink

      Hello,

      This happens because your page is lazy-loading images.

      When the page loads, your “Bud Award” and “Al Tauscher” images are not loaded, so their height is zero.

      When you scroll to or past them, they load (i.e. “lazy load”), so their height changes from zero to their actual height (e.g. 527 pixels).

      All this is happening while the page is scrolling, so between clicking on “Youth Grant Initiative” and smooth scrolling to the target, the target’s top position has already changed, simply because 2 additional images have loaded before it.

      This issue between smooth scrolling and lazy-loading images is very common no matter what scripts or plugins you use.

      There are 2 thing you can do:

      1)Enable plugin’s “Verify target position and readjust scrolling (if necessary), after scrolling animation is complete” option in “Page scroll to id” settings (see info)

      OR

      2)Give your image placeholders a fixed height (with CSS) so they don’t change when the actual image is loaded. This of course can be difficult because images are usually responsive and can’t have a fixed value height.

      Reply
  20. Francis Burns
    Posted on March 14, 2020 at 19:09 Permalink

    Hi,

    Great plugin, thanks!

    I am using the plugin with the Phlox theme (which uses Elementor) on a number of my sites.

    At the end of December 2019 (and possibly January 2020) I implemented the plugin in my websites. I am using the “offset” functionality of the plugin, and initially it worked perfectly.

    However, recently the offset functionality has stopped working.

    (There have been a number of Elementor updates and Phlox updates.)

    Here is an example page where the offset functionality worked perfectly with the expandable wiki-style in-page TOC links. But now, it seems that the offset is no longer recognised by the plugin.

    https://frankburns.me.uk/about/legal/privacy-policy/

    Can you please advise me on what may be the problem and how to fix it?

    Note that I do have the “Prevent other scripts from handling plugin’s links (if possible)” set to true.

    Kind regards,

    Francis

    Reply
  21. Riccardo
    Posted on February 21, 2020 at 16:59 Permalink

    Hi,

    I use your plugin in almost every project ’cause is awesome!
    Unfortunately, now I have an issue.
    I have selected the “Remove URL hash (i.e. the #some-id part in browser’s address bar) when scrolling from/to different pages.” option in the plugin settings, but when I click on the menu item of a different page (aka all other pages except home page), the #something is still at the end of the URL.
    Of course the option “Append the clicked link’s hash value (e.g. #id) to browser’s URL/address bar” is disabled.
    The scroll effect works without any problems, I would only remove the hash and its value that comes in the URL when I click a link to a different page anchor.

    Any suggestion would be appreciated!

    Thank you

    Riccardo

    Reply
    • malihu
      Posted on February 21, 2020 at 17:15 Permalink

      Hello,

      It’s impossible for me to help with such issue unless I see your page/site. Can you post your URL?

      Reply

Comments pages: 1 5 6 7

Post a comment

Your e-mail is never published nor shared. Required fields are marked *

You may use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
You can write or copy/paste code directly in your comment using the <code> tag:
<code>code here...</code>
You may also use the data-lang attribute to determine the code language like so:
<code data-lang-html>, <code data-lang-css>, <code data-lang-js> and <code data-lang-php>

css.php