The scripts tag has no wiki summary.
5
votes
4answers
1k views
dynamically add scripts to WP_Widget widget() method
I have a wordpress widget that has the standard outline like:
class my_widget extends WP_Widget{
function my_widget(){
//do setup stuff
}
function form(){
//do form stuff
}
function ...
2
votes
1answer
319 views
Outputting Canonical Resource URLs Across a Multisite Network?
Say a theme "foo" is used on across a network of sites. In each site, all the theme resources (.css, .js, etc.) will have distinct URLs:
http://network/siteA/wp-content/themes/foo/style.css
...
3
votes
2answers
711 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 ...
2
votes
1answer
111 views
How do I enqueue(or delay loading of) <script> tags in individual page posts?
My customer has many pages with <script> elements including javascript.
<script src="myscriptforthispageonly.js"></script>
I'm trying to get all scripts to load in the footer ...
0
votes
1answer
151 views
Generate featured images old posts
I am looking for a way to generate featured image per post based on the first image in the post for old posts without a set featured image. I'm switching from handmade thumbnails to auto generated ...