My JS code shows up on cornerstone but not on the website

I’m currently practicing X-Theme with building this website: newimperial.com
I have added JS for the menu so it changes background color to grey and the logo is animated and becomes smaller.
The code works great on cornerstone admin. However, it does not show on the website.
How can I fix it?

Hey Yan,

Please wrap your jQuery code with:

jQuery(function($) {
	// code
});

To know why that happened, please see https://digwp.com/2011/09/using-instead-of-jquery-in-wordpress/

Thanks.

1 Like

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