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


1,015 Comments

Post a comment

Comments pages: 1 9 10 11

  1. Gareth
    Posted on October 11, 2024 at 12:26 Permalink

    Hi, I’ve been using this plugin for a while and it’s worked fine. I have a website with a sticky header and a back to top button that fades in as you scroll.

    The other day, my sticky header and back to top button stopped working, so the header is no longer sticky and the fade in button doesn’t fade in, it just appears.

    I tested everything and when I disable this plugin it works again, but I need this plugin as I used it for anchor links.

    Any ideas why it’s doing this? I built the site with Elementor.

    Reply
    • malihu
      Posted on October 12, 2024 at 00:34 Permalink

      Hello,

      “Page scroll to id” plugin cannot control sticky headers or back to top buttons in any way, other than scrolling the page smoothly. Can you post your page/site URL so I can check what happens?

      Does it work again when you deactivate “Page scroll to id” plugin?

      Reply
      • Gareth
        Posted on October 14, 2024 at 13:06 Permalink

        Hi, Yes. I can’t understand what’s going on.

        I’ve been doing more testing and noticed the site works fine inside the Elementor editor with the plugin activated, but when you visit the front end, it all stops working.

        One thing I did notice, is when I click to leave Elementor Editor, I get a very quick error message saying “The Block editor requires javascript. Please enable javascript in your browser settings”.

        I’ve tried all dirrefent browsers, on different PC’s.

        Also I have the same site (The test site where it was built from) on another domain and it works fine!

        I don’t know what happened to cause this.

        Reply
        • malihu
          Posted on October 14, 2024 at 15:11 Permalink

          I can’t really help without seeing your page/site but in general, the plugin cannot produce such issues on its own. Do you get any console error(s) in the browser while viewing the frontend?

          Reply
          • Gareth
            Posted on October 14, 2024 at 16:06 Permalink

            Hi,

            There is an error in the console which shows the folder of a security plugin called ‘WP Hide & Security Enhancer’ but the errors remain even if I disable that plugin. And the plugin is working fine with yours on the test server.

            The live site is at http://www.gogadgetnews.com and the test one is at wwdhost.uk/ukcg

            The live site menu has stopped working and the back-to-top button which is supposed to fade in is just stuck on-screen all the time. This corrects if I disable ‘Scroll to page ID’ but as I said it’s all working on the test server, so I cannot understand why it does not work on the live site.

          • Gareth
            Posted on October 14, 2024 at 17:42 Permalink

            Hi,

            I found the problem. When looking at the console, I kept seeing an error with ‘Rocket Loader’ which I wasn’t familiar with but doing a search turns out it is a Cloudflare feature which I have now turned off and the site is working 🙂

          • malihu
            Posted on October 15, 2024 at 15:54 Permalink

            I was going to ask you about caching but you posted it 🙂 Thanks for posting why the issue was happening.

  2. Anthony
    Posted on October 5, 2024 at 15:49 Permalink

    Hi there,

    Your plugin is great thanks. BUT, on the main homepage it works great – https://anthonyw117.sg-host.com/, but if on a different page and you click on the main navigation menu it does not scroll to the correct place, it scrolls past the ID, for example if you click on any of the menu items on this page – https://anthonyw117.sg-host.com/faqs/

    Any hints?

    Thanks

    Reply
    • malihu
      Posted on October 6, 2024 at 03:28 Permalink

      Hello,

      I can’t really reproduce the issue. Does this happen on specific browser(s)?

      Try using plugin’s “delay for scrolling to target on page load” field by entering a value like 300.

      You can also try enabling “Verify target position and readjust scrolling (if necessary), after scrolling animation is complete” option.

      Let me know

      Reply
      • Tony
        Posted on October 6, 2024 at 16:04 Permalink

        Thanks for your reply… can you please try this: go to homepage – https://anthonyw117.sg-host.com/ – then click on OUR STORY in main menu, then click on one of the posts, then click on any of the main menu items (not HOME), it loads up the home page again but then doesn’t stop at the correct place. It happens on Chrome and Safari for me. Thanks.

        Reply
        • Tony
          Posted on October 6, 2024 at 19:08 Permalink

          I made the “delay for scrolling to target on page load” 500 and it has fixed the problem! Thank you!

          Reply
          • malihu
            Posted on October 7, 2024 at 01:19 Permalink

            You’re welcome 🙂

  3. pishooder
    Posted on July 25, 2024 at 18:20 Permalink

    Hello, i set up the delay enough long to read the title of the page, but i wanted to know if i can create a link ( back previous page ) with a different delay in the link ? to come back faster back in the id back?

    Thank you

    Reply
    • malihu
      Posted on July 27, 2024 at 14:40 Permalink

      Hello,

      There’s no way to add a different delay on a specific link. I don’t know exactly what you need but I’m guessing going back to some other id on a previous page (correct?) but unfortunately there’s no way to do this (at least not without developing a custom js script with a bit of PHP).

      Reply
  4. Paris
    Posted on June 30, 2024 at 20:18 Permalink

    Hi mate,

    I have installed your plugin on this website. Is it possible for the menu to automatically close on mobile devices when you click on an option?

    Reply
  5. Erdafa Andikri
    Posted on June 28, 2024 at 11:41 Permalink

    Hi

    I am building a website that uses the html-anchor as an ID a CSS :target Selector.

    I need your help to disable the jump to section feature so the user doesn’t get surprised when they click the button

    The particular page in my website is board of directors page, when you click the image, a description text overlay appears using a fade transition.

    My goal is to make the user comfortable and can see the description clearly.

    The problem is because it uses the html anchor, it jumps to the section thus making jerky and sudden movements that made the user uncomfortable

    I have tried to exclude the id, but still it jumps to the section

    Do you have any advice or solution?

    Thank you

    Worm regards,

    Erdafa Andikri

    Reply
    • malihu
      Posted on June 28, 2024 at 13:06 Permalink

      Hello,

      I’d need to see your site/page in order to help. Can you post or send me the URL?

      Reply
      • Erdafa Andikri
        Posted on June 28, 2024 at 13:31 Permalink

        unfortunately i cant give you the url because the website is still at my localhost.

        i will give you a youtube video that give you an understanding of my problem

        https://youtu.be/abF2PiWG9Es

        Reply
        • malihu
          Posted on June 28, 2024 at 13:39 Permalink

          Have you activated “Page scroll to id” plugin? Is the “+” button an actual link with an href value?

          Reply
          • Erdafa Andikri
            Posted on June 30, 2024 at 16:50 Permalink

            yes i already turned it on.

            to be clear, i want to disable it.

            i dont want it to jump to section.

        • malihu
          Posted on July 1, 2024 at 21:46 Permalink

          I don’t think it’s possible to stop a link from jumping to its hash (you can test this by deactivating the plugin and see that it still jumps to the hash target), unless you add custom javascript. This is because jumping to hash is a standard browser behavior.

          The thing is that unless I see your page/code I cannot provide what js code to add. At the very least you’ll need to tell me the class(es) of the “+” element (and its parent element) and maybe we can try adding some code.

          Keep in mind that adding the code might still not work as it’ll depend on how your theme devs created the button functionality.

          By the way, what clicking the “+” button supposed to do?

          Reply
          • Erdafa Andikri
            Posted on July 2, 2024 at 05:55 Permalink

            https://youtu.be/TfhuK0y9Hmw

            clicking the + button shows the description of the member, i used css to achieve this

            i think our conversation ends here, i will try to figure it out myself.

            really appericiate your help

            thank you,
            Erdafa Andikri

        • malihu
          Posted on July 2, 2024 at 21:37 Permalink

          No problem 🙂 Let me know if I can help.

          Reply

Comments pages: 1 9 10 11

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