milene
Forum Replies Created
-
Forum: Plugins
In reply to: [jQuery UI Widgets] TypeError: $(…).dialog is not a functionYes I tried to load only the widgets I needed with the custom download (core.js, widget.js, mouse.js, position.js, draggable.js, resizable.js, button.js, dialog.js) but I have still the error.
I don’t know what to do.
The HTML dialog is already on a wordpress page. But not working.
<?php /* Template Name: Vision 2020 */ ?> <?php get_header('cofely-display'); ?> <script language="javascript" type="text/javascript"> jQuery(document).ready(function($) { var dialogPdf = $("#dialog").dialog({ autoOpen: false }); $('#trigger').click(function(e){ dialogPdf.dialog('open'); return false; }); }); </script> <div id="dialog" class="dialog" style="display:none"> <?php $file = get_field('livret_pdf'); if( $file ): ?> <div> <iframe src="<?php echo $file['url']; ?>"></iframe> </div> <?php endif; ?> </div>Maybe a conflict somewhere ? Is it possible ?
Forum: Plugins
In reply to: [jQuery UI Widgets] TypeError: $(…).dialog is not a functionSorry mishandling. Here is the rest of my message :
I tried the code you gave me, but still nothing. Any idea ?
Forum: Plugins
In reply to: [jQuery UI Widgets] TypeError: $(…).dialog is not a functionHi David,
Thanks for you reply.
I downloaded the custom file from this website http://jqueryui.com/download/ and check that the file contained the dialog widget, dialog.js.
By saying “using the plugin” you mean if the librairy is well included in my website ?
I called the file in function.php :
wp_register_script('jquery-ui', get_template_directory_uri() . '/js/jquery-ui.js', array('jquery'), '1.0.0'); // Custom scripts wp_enqueue_script('jquery-ui'); // Enqueue it! wp_register_script('jquery-ui-min', get_template_directory_uri() . '/js/jquery-ui.min.js', array('jquery'), '1.0.0'); // Custom scripts wp_enqueue_script('jquery-ui-min'); // Enqueue it!Also, I tried to replace
$(document).ready(function() {
By your code (I already tried it)
`
jQuery(document).ready(function($) {var dialogPdf = $(“#dialog”).dialog({ autoOpen: false });
$(‘#trigger’).click(function(e){
dialogPdf.dialog(‘open’);
return false;
});
});Hello, thanks for your reply.
This is the link of my video galery :
http://cofely-se.milenehays.com/videos-cofely-2/
Thanks by advance
Hello, thanks for your reply.
This is the link of my video galery :
http://cofely-se.milenehays.com/videos-cofely-2/
I found the solution for this. I don’t change the width of elements on galery. If I change it, images are pixelated.
But It’s weird we can’t have great quality for youtube default thumbnails.
Forum: Plugins
In reply to: [WP Cloudy] Wrong animation on your website!Hi,
I visited my website this morning and I noticed a bug on firefox.
And thanks, it works for me too ! When the update will be available to fix the problem available ?
Milène