On click load iframe [closed]

Did you inspect your code for any errors? If the error is “Uncaught TypeError: $ is not a function”, then maybe you can add the code as below. <script> jQuery(document).ready(function($) { //your code starts here <iframe id=”myiFrame” class=”stop-lazy” data-src=”https://some.iframe” frameborder=”0″ allowtransparency=”true” style=”width: 100%;min-height: 150px;”></iframe> }); </script>

Trigger wp-embed via JavaScript to refresh iframe preview?

Unfortunately WP Embed isn’t responsible for converting links into iframes. The conversion of links and shortcodes into iframes is implemented by OEmbed and that happens via OEmbed APIs on the_content filter in PHP, not javascript. It’s much more likely that your transitioning to pages that use raw post content rather than processed/rendered content, e.g. templates … Read more

Load images after page load

I took a look at it on Github: https://github.com/tuupola/jquery_lazyload – it appears that there was some sort of fix that was merged in that helps, though I’m not sure if it really fixes the issue. It appears to work for me as expected in FF6, though my connection is probably not slow enough to really … Read more

jQuery UI Tools (Flowplayer) Issues

If it doesn’t work anyway, what is the harm of trying to do it right way? You do not use wp_enqueue_script() for most of scripts. You should. Loading two copies of jQuery is wrong. The fact that trying to fix it breaks something does not make it less wrong. From quick look you have a … Read more

How to modify the paths of js from twentytwelve theme?

To disable comment-reply go to Discussion Settings and disable Threaded (nested) comments. Google-hosted jQuery: function my_scripts() { wp_dequeue_script(‘jquery’); wp_enqueue_script( ‘jquery’, // name ‘//ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js’, // google hosted, protocol-independent array(), // dependencies (empty) NULL, // removes version true // load in footer, ‘false’ for header ); } add_action(‘wp_enqueue_scripts’, ‘my_scripts’);

Javascript in wordpress

Replace your above code with this following code : <?php /* Template Name: Meet The Team Template */ ?> <?php get_header(); ?> <div id=”meet_posts” class=”narrowcolumn”> <?php $recent = new WP_Query(“cat=6&orderby=title&order=ASC”); while($recent->have_posts()):$recent->the_post(); $desc_values = get_post_custom_values(“description”); ?> <div id=”meetteam_featured_image” class=”<?php the_ID(); ?> team_featured_image_<?php the_ID(); ?>”> <a href=”https://wordpress.stackexchange.com/questions/88772/<?php the_permalink() ?>” rel=”title”> <?php if ( has_post_thumbnail() ) { the_post_thumbnail(); … Read more

in jquery read a multidimensional array via wp_localize_script()

Accessing the data var data0A = theme_metadata[0].dataA, data0B = theme_metadata[0].dataB, data1A = theme_metadata[1].dataA, data1B = theme_metadata[1].dataB; [Update] Iterating over numeric arrays in JS While the initial question was still somewhat pertinent to WordPress, your follow-up really is a question purely concerning javascript syntax. Anyway, this is how: var dataA, dataB; for ( var i = … Read more