0
votes
2answers
17 views

is there a way to get all queued scripts/styles into a template without `get_header()`?

in my main plugin page i check if a certain page is visited if so, i load a certain template. in the following way: add_filter( 'template_include', array($this, 'includeTemplate'), 99 ); public ...
0
votes
1answer
206 views

Load plugin scripts and styles only on plugin page

Hello wordpress users, I'm stuck with a problem while running 2 self made Wordpress plugins. I'll use the following code : define('PLUGIN_URL', plugin_dir_url( __FILE__ )); add_action( ...
1
vote
1answer
869 views

Add stylesheets and js to template files when shortcode is used

After looking for days throught the net and no avail - i'd like to ask all of you guys. PROBLEM: i need to add custom code to the head of the file as part of shortcode use for my plugin. The same ...
0
votes
1answer
56 views

Dynamically determine URI to scripts and styles included with a class which could be added from plugin/theme/child theme/mu plugin

I'm working on a settings API class which I'd like to be able to drop into a plugin, wpmu plugin, theme, or child theme directory, and have it just work. My issue is that I'm having trouble figuring ...
0
votes
1answer
165 views

Enqueuing a script before anything else

I wondered if it was possible to change the order in which a script is enqueued. I ask this because I wish to include the HTML5 enabling script but it needs to be included before any styles. Is ...
4
votes
2answers
1k views

Is it possible to change the attributes of a registered style or script before it fires?

I'd like to modify the properties of a registered style(or script - same applies) before it's been loaded. Right now i'm trying to modify a registered style just before it gets enqueued, so i can ...