Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Jquery WP issue Re: Jquery WP issue

#118240
SgtLegend
Member

Well the first thing I would change is the URL for jQuery, you don’t need to detect if the server is using SSL as browsers can handle that for you. See the below:

// Using 2 forward slashes will let the browser know it has to pick the protocol, works in every browser
wp_register_script(‘jquery’, “//ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js”, false, null);

The question I would have though is in your page source what comes first? jQuery or the plugins?