How do I pass WordPress’s get_bloginfo(‘siteurl’) to Jquery?

I’m guessing this is a really dumb question, but I’m far more familiar with PHP/WordPress and I’m just getting started with jQuery so I’m not even sure what to search on. Is there a way to pass the output of echo get_blogifo(‘siteurl’) To jQuery? I’m trying to get this to work: $(‘a.getstarted’).attr(‘href’, ‘<?php echo get_bloginfo(‘siteurl’); … Read more

Custom events in jQuery?

I’m looking for some input on how to implement custom eventhandling in jquery the best way. I know how to hook up events from the dom elements like ‘click’ etc, but I’m building a tiny javascript library/plugin to handle some preview functionality. I’ve got a script running to update some text in a dom element … Read more

Can clearInterval() be called inside setInterval()?

bigloop=setInterval(function () { var checked = $(‘#status_table tr [id^=”monitor_”]:checked’); if (checked.index()===-1 ||checked.length===0 || ){ bigloop=clearInterval(bigloop); $(‘#monitor’).button(‘enable’); }else{ (function loop(i) { //monitor element at index i monitoring($(checked[i]).parents(‘tr’)); //delay of 3 seconds setTimeout(function () { //when incremented i is less than the number of rows, call loop for next index if (++i < checked.length) loop(i); }, 3000); … Read more

jQuery .ready in a dynamically inserted iframe

We are using jQuery thickbox to dynamically display an iframe when someone clicks on a picture. In this iframe, we are using galleria a javascript library to display multiple pictures. The problem seems to be that $(document).ready in the iframe seems to be fired too soon and the iframe content isn’t even loaded yet, so … Read more

WordPress and jQuery [closed]

Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for WordPress Development Stack Exchange. Closed 9 years ago. Improve this question I am fairly new to using jQuery in WordPress and I am trying to write jQuery scripts in a separate file. … Read more

Make parent category not selectable when it has child categories

I’m trying to find a way of disabling the selection of the parent category within WordPress 3.5.1 (post editor screen) only when that parent category contains child categories. My structure: Category 1 (no children, allow users to post, keep selection option) Galleries (parent category WITH children, remove selection option to stop users posting) User 1 … Read more

How to correctly add JQuery in a WP theme?

I am pretty new in WordPress and I have the following doubt: I have to include JQuery into a theme and I am doing in this way: I create the following function into functions.php theme file and I add it as action: function load_java_scripts() { // Load FlexSlider JavaScript that handle the SlideShow: wp_enqueue_script(‘jQuery-js’, ‘http://code.jquery.com/jquery.js’, … Read more