Tagged Questions
0
votes
2answers
76 views
enqueue_script doesn't work with HTML5 blank theme
I am trying to enqueue a couple of js files using something like this code:
function scripts_function()
{
wp_register_script('mapbox', 'http://api.tiles.mapbox.com/mapbox.js/v0.6.7/mapbox.js');
...
-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
3answers
287 views
What can I hook into after_setup_theme?
I'm wondering what can I or should I NOT hook to after_setup_theme? I'm wondering because I have been told that I shouldn't hook wp_enqueue_style to it, but I have seen other places using it to hook ...
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' ...
0
votes
1answer
265 views
What's a good way to unenqueue all scripts for a single template page?
I've found that my attachment templates are inheriting the enqueued scripts for single posts. My first instinct was to unenqueue these scripts one-by-one or to do an is_attachment() check before ...
