jQuery not functioning inside Cornerstone custom JS section

I have implemented jQuery on a variety of pages. Up until today, this has worked well as it seemed like jQuery has been supported inside the Cornerstone custom JS box. However, now I am getting the error “$ is not a function,” indicating that it is not recognizing jQuery as custom JS. When I add a link to jQuery at:

in the header of the page, my jQuery works again. Did something change recently in the Cornerstone builder so jQuery is no longer supported?

Thanks.

Hi @Hyperbits,

Thanks for reaching out.
It will be very difficult to recognize the reason behind your issue. I would suggest you check once by adding your JavaScript code within the following code.

jQuery(document).ready(function($)
{
    //add your code here
});

If that does not help, there might be some different reasons behind your issue. I would like to suggest troubleshooting the following common issue to help us to recognize the reason.

1.Theme Related Issue
2.Plugin Conflict
3.Theme Update related issue
4.Child Theme Related issue
5.CSS/JS Customization
6.Disabling Cache
7.Disabling CDN

If you discover that an issue is coming from a custom code or 3rd party plugin, kindly consult with a developer or contact the plugin author. Please note that we do not provide support for custom codes and 3rd party plugins.
If none of the above helps, please provide login credentials for your site in a secure note to examine it further, including:

– WordPress Site URL & Login URL
– WordPress Admin username/password

To create a secure note, click the key icon underneath any of your posts.

NOTE: Please remember that we don’t offer any support to custom coding and related issues.

Thanks

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