I have a bit of a problem with jQuery UI & jQuery theme not loading.
Im using the latest Wordpress 4.6. Using Functions.php within my theme folder, ive added this code:
function jquery_frontend_scripts() {
global $wp_scripts;
wp_enqueue_script('jquery-core');
wp_enqueue_script('jquery-ui-core');
wp_enqueue_script('jquery-ui-checkboxradio');
$queryui = $wp_scripts->query('jquery-ui-core');
$url = "//ajax.googleapis.com/ajax/libs/jqueryui/".$queryui->ver."/themes/base/jquery-ui.css";
wp_enqueue_style('jquery-ui-base', $url, false, null);
}
if (!is_admin()) add_action('wp_enqueue_scripts', 'jquery_frontend_scripts');
On a contact7 page within wordpress admin ive added:
<script>
jQuery(function() {
jQuery( "input" ).checkboxradio({
icon: false
});
} );
</script>
<legend>Välj belopp: </legend>
<label for="radio-50">50 kr</label>
<input type="radio" name="radio-50" id="radio-50">
<label for="radio-200">200 kr</label>
<input type="radio" name="radio-200" id="radio-200">
<label for="radio-500">500 kr</label>
<input type="radio" name="radio-500" id="radio-500">
That function is being called. So I guess there must be something wrong with jQuery UI or the jQuery Theme not loading correctly. Thanks!