• I’m trying to make one of my Max Buttons anchor to a specific section on the same page. It’s a single page site, and I have a button at the top that I want to take people to the bottom of the page when clicked.
    Right now I have the link for the button as #schedule (“schedule” being the section id). It’s worked a few times in preview mode when editing the page, but doesn’t seem to work on the live site. I can’t figure out what the deal is.
    I’m using a multisite by the way. I’ve updated the plugin and tried disabling it on all sites within the install except the one I need it for, still nothing.
    When I click the button, the correct URL shows up in the browser, but the page doesn’t scroll. If I then click refresh, it refreshes the page and then scrolls down.
    Is this type of link not supported in MaxButtons? Any help would be appreciated.

    https://www.ads-software.com/plugins/maxbuttons/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Bas Schuiling

    (@basszje)

    The plugin doesn’t do anything special with this type of link. Instead you should check if the anchor it links to really exist when loading the page. I suspect this is not the case.

    Thread Starter amandafloeckner

    (@amandafloeckner)

    Right. Well I’ve double checked and I’m certain the anchor exists.
    Could you check it out and let me know if something doesn’t look right? I’m convinced it’s something with the button or theme, so I’m trying to eliminate possibilities here.

    getstarted.storyclip.com is the URL. When clicking the Learn More button at the top, the URL changes to getstarted.storyclip.com/#schedule but nothing happens.
    If you copy the url with the anchor id and paste it into the browser though, it works properly. I don’t know why the button itself is not working. I’ve tested the anchor by creating other text links within the page, and they work fine. My theme comes with buttons, which also work, but I don’t like the way they look compared to the MaxButton. I’d prefer to stick with you guys if I can.

    Plugin Author Bas Schuiling

    (@basszje)

    I checked, but the ID you are refering too looks like this:

    data-q_id="#schedule"

    This is not a valid HTML ID but I suppose it’s something that your theme uses to do this scrolling effect.

    To have a link you need an ID somewhere on the page like this (without the # ):
    id="schedule"

    Thread Starter amandafloeckner

    (@amandafloeckner)

    Hmm…Bummer. Okay, thank you for checked. I needed some fresh eyes on this and your feedback was very helpful and prompt. I’ll see what I can do on the theme side of this.

    Thank you!

    Plugin Author Bas Schuiling

    (@basszje)

    Good luck. It should be very easy to an add anchor like that. If you can add html to the site just add something like this:

    <span id="schedule"></span> and you should be done.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘MaxButton Anchor to Page Section Not Working’ is closed to new replies.