Tagged Questions
2
votes
1answer
128 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
2answers
97 views
Including javascript for a shortcode
I'm creating a plugin that allows a user to use a shortcode. This shortcode depends on a bunch of javascript that needs to be present once the shortcode loads.
I'm having issues trying to decide when ...
0
votes
2answers
516 views
Setting Variable Path to Template Directory inside Script
I have HTML5 Template with 5 pages. I am converting it to a WordPress Theme.
I have a contact page. This page includes 'forms.js' script to send contact form data to 'MailHandler.php' file.
Inside ...
1
vote
1answer
380 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
1answer
103 views
Removing admin javascript
I'm having some trouble adding jquery-week-calendar to WordPress' admin interface using add_menu_page and other API methods. What I found out is that the default jquery-ui and other JavaScript ...
3
votes
2answers
178 views
What are the benefits of using wp_enqueue_script?
Is there any real benefit to using wp_enqueue_script on small self-managed sites? For instance, Modernizr, why enqueue it through a function rather than call it directly inside the document head?
I ...
1
vote
1answer
300 views
Question about the way that wp_register_script works
Ok so I'm using the Roots Theme for WordPress (https://github.com/retlehs/roots), which, is sort of a starter theme or theme framework.
I'm confused about the way that it deregisters the WordPress ...
0
votes
1answer
742 views
wp_enqueue_script() not working
I'm trying to add this social-network button:
<a href="http://svejo.net/submit/?url=[your url]"
data-url="[your url]"
data-type="compact"
id="svejo-button">Add in Svejo</a>
...
0
votes
3answers
241 views
Display a consistent Google Plus icon on ALL pages of my site
My website is http://tablified.com and I have managed to setup the Google Plus script. The issue is that every page of the site displays a different Google Plus count. For example, if you go on my ...
0
votes
1answer
29 views
What's the default setting for including a <script> in a post
As we're evaluating whether we should build a Wordpress plugin and in that context I'm trying to figure out how Wordpress handles script tags in a post?
What's the default setting?
Thanks!
2
votes
3answers
535 views
Editing Source Code in Wordpress
I am a senior in a college computer science program, and therefore have a decent knowledge of code and several languages. However, I am doing a summer internship type program, and the company I am ...
0
votes
2answers
91 views
Scripts at the end of the page
If I wanted to put the scripts that all my plugins use at the end of the page, where would I do this?
Using YSlow/Firebug it recommends this tactic.