Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author malihu

    (@malihu)

    Do you use an anchor element (ie link)?

    Your link code should look like this:

    <a href="#some-id"><i class=”fa fa-angle-down fa-2x arrowfa”></i></a>

    The above should scroll to some-id target as long as you have a[href*=#]:not([href=#]) in “Selector(s)” field in plugin settings.

    Otherwise (ie with the default “Selector(s)” option value), your link should be:

    <a href="#some-id" rel="m_PageScroll2id"><i class=”fa fa-angle-down fa-2x arrowfa”></i></a>

    or

    <a href="#some-id" class="ps2id"><i class=”fa fa-angle-down fa-2x arrowfa”></i></a>

    Does this help?

    If you could post your page/site url I’d be able to check what exactly happens and provide an exact solution.

    Thread Starter bradfranklin

    (@j66brad)

    Sincere thanks for your prompt reply. I’ve been off the grid and just noticed it. On iPhone now. I’ll try out code and get back to you Mon morning when on desktop. Dev is running locally but I may push to staging server. Still debating. Still need to configure server.

    Thanks again for your assistance. Will get back to you.

    Thread Starter bradfranklin

    (@j66brad)

    Ok still getting odd results but I think it may be a local cache issue. I’ve changed the plugin settings to the following:

    a[href*=#]:not([href=#])

    Previously I only had half of this think you meant
    a[href*=#]`

    I changed my original in page link code by removing the class:

        <a href="#primary">
           <i class="fa fa-angle-down fa-2x arrowfa"></i>
           <i class="scale-hover alpha-ball-medium"></i>
       </a>
    

    Question:
    Should the anchor reference be noted in the address bar? When no reference of the anchor shows up in the address bar is scroll to anchor target with your plugin settings otherwise it jumps to the anchor location. On the third of forth try it’s scroll to.

    This may be a local cache issue. Thoughts? I can configure server later today and push to staging.

    Thread Starter bradfranklin

    (@j66brad)

    Just sent you links to staging site

    Plugin Author malihu

    (@malihu)

    Hey I just checked your pages and scrolling works for me every time.

    To have the anchor reference in the address bar, go to plugin settings and enable “Append the clicked link’s hash value to browser’s URL/address bar” option.

    Is this what you need?

    Thread Starter bradfranklin

    (@j66brad)

    It’s still doing it. It jumps directly to id. You scroll back up. It’s do it again. Third of fourth try it’ll scroll to id.

    I’m using Local by Flywheel. Staging site as well is doing it on my end. Will try not enqueue some scripts and see if that helps. Will follow up

    Thread Starter bradfranklin

    (@j66brad)

    Ok I’ve got this working. Local cache issue and had an enqueue js script error that was possibly throwing things off.

    Sincere thanks for your help. Great plugin! I’ll be sure to tell other developers, designers and post a positive review!

    Plugin Author malihu

    (@malihu)

    Hey, sorry for the late reply (just got back from summer vacations!).

    Thanks a lot for your review ??

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Hard coded link jumps to id anchor. on third try scroll to. help’ is closed to new replies.