• Resolved gordonmiddleton

    (@gordonmiddleton)


    I’m using the bridge theme and Asset cleaunup to cut the theme down. I’ve just discovered that my anchor links are no longer working on my entire site. If I deactivate Asset Cleanup, the anchor links work again.

    The problem here is that I am not blocking the anchor function with Asset Cleanup. checkAnchorOnLoad() in the default.js file (wp-content/themes/bridge/js/default.js)

    I can see this as an option to unload on my home page with Cleanup Asset, but I do not have it unloaded.

    Any ideas whats going on here?

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter gordonmiddleton

    (@gordonmiddleton)

    Hey team,

    Following up on this!

    Plugin Author Gabe Livan

    (@gabelivan)

    @gordonmiddleton I checked your website, by comparing the HTML source before & after the changes and you’ve unloaded plenty of JS files. It’s enough if one of them is connected to the one you mentioned – /wp-content/themes/bridge/js/default.js – and it could mess things up. You need to go through a trial and error and determine the faulty one.

    Also, I’ve checked your website and couldn’t find the anchors you mentioned, can you be more specific about it? Perhaps you can add some prints screens via https://imgbb.com/?

    Please also load https://www.plastictides.org/?wpacu_no_js_unload – if the anchors work fine when this URL is loaded, then the issue is definitely from the fact that one of the JS files is unloaded (which should be loaded back).

    Thread Starter gordonmiddleton

    (@gordonmiddleton)

    Hi Gabe,

    The anchor is on this page https://www.plastictides.org/get-involved . It is the “Join the Rising Tide” icon and text at the button right (on desktop). The anchor itself is #TheRisingTide.

    We tested /?wpacu_no_js_unload#TheRisingTide and that did indeed work, but we also found something else out that seems curious. We added a button to the homepage itself and set it up to link to the anchor. That works even without /?wpacu_no_js_unload . So for some reason the homepage is missing something, but only if we try to go directly to https://www.plastictides.org/#TheRisingTide . everything works correctly if we use the on-page button to move to the anchor link.

    We left the button so that you can see what we’re talking about. Scroll to the very bottom of the homepage and you’ll see the button “Join The Rising Tide”

    Plugin Author Gabe Livan

    (@gabelivan)

    @gordonmiddleton I suspect it’s not an Asset CleanUp issue as now it’s working fine and Asset CleanUp is active. Perhaps it was a temporary glitch. I guess you did some changes via the CSS & JS manager or you deactivated a plugin that could have been interfering with it. I’ve tested it in Chrome and Firefox and the anchor is not broken.

    Thread Starter gordonmiddleton

    (@gordonmiddleton)

    Very late reply, but for your knowledge and anyone that might find this later. I fixed the issue by allowing “DoubleTapToGo.js” to load on my page. Turns out that was needed for the anchor link to autoscroll

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Anchor Links blocked’ is closed to new replies.