Tagged Questions
-1
votes
1answer
41 views
Errors while Loading Most Recent Version of jQuery
I am trying to set up my WordPress so that it will use the most recent version of jQuery. Here is what I have done so far:
functions.php
<?
add_action( 'wp_enqueue_scripts', 'RegisterJQuery' );
...
0
votes
2answers
94 views
Is the wp_enqueue method efficient?
I had a quick question regarding how you are supposed to load in scripts with Wordpress. I am developing a theme and I know that the best way to do this is to use the ...
0
votes
0answers
59 views
WP_register_script() - odd behavior or bug [closed]
I've got WordPress Theme and WordPress Plugin. Both use colorpicker.js file. Theme has this in functions.php (for admin only):
wp_register_script('jquery_colorpicker_script', ...
1
vote
1answer
332 views
How do I get the $handle for all enqueued scripts?
Is there some way to get the $handle for each script that has been enqueued?
Is there some array that holds all the handles so that I can loop through it and do something using each $handle?
0
votes
2answers
100 views
How to execute a simple php script in WP (I don't think wp_enque_script applies here)
I have a wordpress page where I want to include a budget calculation tool here: http://tinyurl.com/c2fwy9f
This budget calculation tool is of course tied to a php script that executes the fields in ...
0
votes
1answer
79 views
How can I print out a single stylesheet or javascript link?
I know I can use enqueue_script and enqueue_style to register scripts and stylesheets, however I'm trying to print out just the link to the adminbar css:
<link rel='stylesheet' id='admin-bar-css' ...
1
vote
1answer
113 views
Is it recommended to pass some data to scripts in `wp_enqueue_scripts`?
I have on many occasions used wp_enqueue_script to pass some 'query variables' to scripts like this:
function my_enqueue_scripts(){
$tempurl = urlencode( get_bloginfo( 'template_url' ) );
...