Issue with the Scroll to Top button in dealstore pages

Open
REHub - Price Comparison, Affiliate Marketing, Multi Vendor Store, Community Theme REHub - Price Comparison, Affiliate Marketing, Multi Vendor Store, Community Theme March 31, 2025
Login to reply
Amit Das
12 hours ago

I have found this js file in the inspection tool of DealStore pages (uncached): /wp-content/themes/rehub-theme/js/custom_scroll.js?ver=1.4

Also this code is present in the footer: <span class="rehub_scroll" id="topcontrol" data-scrollto="#top_ankor"><i class="rhicon rhi-chevron-up"></i></span>

So, may be the topcontrol script was not excluded from loading on the deal-store pages.

Can you please how to deal with it so that the file do not load in the dealstore pages?

Igor Sunz Support Agent
1 day ago

I am not sure where you got scroll to top button on store pages, because Rehub theme do not have such button on store pages. We have only on posts

Amit Das
2 days ago

My dealstore pages have the Scroll to Top button but not showing. There are browser errors also showing as shown in the screenshot and below:

Uncaught TypeError: Cannot read properties of undefined (reading 'top') at ....

I could not find anything that caused the issue. I thought it may be Page Optimization issue but unoptimized pages also showing this error.

Please help me with that.

Additional Info

Link on page with issue: https://cbshop.in/store/sonaar-coupons/