Script not working after pro update

Hello,
The last pro update broke one of my scripts that has been working for the last 5 years. On the homepage there are “our efforts” icons that lead to the corresponding tab on the “our efforts” page. When I click on the tab now it leads to the page but the tab is not open. Do you know why this would happen suddenly? The URL is: https://www.statenislandda.org/. Please see the secure note.
Thank you

Hello @Jennine,

Thanks for writing in!

After doing the updates, always remember to clear all caches (if you are using Autoptimize, WP Rocket, WP SuperCache or W3 Total Cache) when updating so that the code from the latest release is always in use. This will help you to avoid any potential errors.

And please clear your browser cache too. You may use private browsing mode in testing your site to make sure that you are viewing the latest codes from the updates and not the cached version in your browser.

It could also be caused by a plugin conflict, amongst other things. Please check out this troubleshooting article here and follow the instructions for the following sections (where appropriate):

Testing for Plugin Conflict
Theme Update
Child Theme
CSS/JS Customization
Increasing PHP Memory Limit
Disabling Cache
Disabling CDN

Best Regards.

I havent done anything different with adding plugins. This script has been fine for years . I don’t understand why it would all of a sudden not work.
jQuery( function($){
$(’.page-id-134 .efforts-tab-div .tab-row li:first a’).trigger(‘click’);

$(window).on(‘load’, function() {
$(window.location.hash).trigger(‘click’);
});

On the homepage there are “our efforts” icons that lead to the corresponding tab on the “our efforts” page. When I click one of the icons, it leads to the page but the tab is not open. The URL is: https://www.statenislandda.org. Also when you go to the “our efforts” page the first tab should be open and it is not anymore. I turned the caching off and it still doesn’t work. I cant understand why. All the id’s are the same. Can you please offer a suggestion. I would really appreciate it.
Thank you

Hi @Jennine,

Your custom JS code was coded by someone and that the code no longer works with the latest version of the theme and WordPress. Regretfully, enhancing custom code is outside the scope of our theme support. You may seek 3rd party developers to help you with your problems or you can avail One where we can answer questions outside of the features of our theme.

Hope that helps and thank you for understanding.

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