Scroll To Top not active on front end, but works on backend

Since the plugins latest big update, and the reintroduction of Scroll To Top visually showing up once again. It has been working well!

However as of recently with the latest theme updates. I am seeing that the back to top anchor is once again not working for me. However when you are logged in the back to top anchor works fine.

Hi @IPA_tech,

Thanks for reaching out.
I have checked and found the problem in your live site. But we need to check the settings through the WordPress admin dashboard, please share the credentials in the secure note for further investigation.

NOTE: If everything goes fine in your staging please try by migrate from the staging server to live. Please remember to take a backup of your live site and the database before performing the migration.

Thanks

Hi Tristup,
Thankyou kindly I will send you the staging details as well as the live site details for you so you can look at both.

Best Regards~

P.s: For further clarification for a few weeks after migration (manual) from staging to production the back to top was working fine. Its only been recently it stopped it seems.

Hi @IPA_tech,

I have checked your live site and found that When To Show value is set to 85% for Scroll to Top. I have changed it to 15% and now the Scroll to Top is showing properly.

Screenshot 2023-06-27 133532

Thanks

Hi @tristup

I think there was some confusion.

I made mention that it was already working on the backend (including when youre logged in and just viewing it through the admin login).

So its actually when in incognito/not logged in you can see the back to top still doesnt work, it wasnt so much the percentage scroll, as that was working fine at 75%.

Hi @IPA_tech,

I have checked and found that the SG Optimizer is the reason behind your problem. I have temporarily deactivated the plugin and found the Scroll To Top is working.

With SG Optimizer:

Without SG Optimizer:

Thanks

Hi @tristup ,

So after some trial and error with SG Optimizer I was able to narrow it down to a particular setting in the plugin.

It seems ot be the “Defer javascript loading” setting within the plugin is the particular issue.

Everything else from what i can see (aside from combining javascript as well which breaks our entire website), works fine.

It must dynamically recognise that particular piece of javascript as render blocking and as such is stopping it, or isnt allowing it to render for some reason.

Hi @IPA_tech,

Glad to know that you are able to recognize the exact reason behind your problem.

Thanks

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.