Timeline for How do I use this javascript correct with wordpress?
Current License: CC BY-SA 3.0
15 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 24, 2014 at 0:36 | review | First posts | |||
May 24, 2014 at 5:02 | |||||
May 19, 2014 at 21:13 | answer | added | Matt Royal | timeline score: 0 | |
May 19, 2014 at 18:12 | comment | added | eyoung100 | See here | |
May 19, 2014 at 17:58 | comment | added | eyoung100 | Yes, that is what im saying | |
May 19, 2014 at 17:53 | comment | added | user2059370 | Oh i just enqued jquery in general, you say i should just create a jsfile of what i had in my header and then enque that? | |
May 19, 2014 at 17:32 | comment | added | eyoung100 | Take it out of functions.php, then save it as a scriptfile in wp-includes/js then use enqueue as in the JavaScript in Template Files section | |
May 19, 2014 at 17:19 | comment | added | user2059370 | Actually I enqueued the jquery in the header- Still have the same result though, i need to load browser twice (safari). I put <?php wp_enqueue_script("jquery"); ?> before wp_head, and then my javascript after the wp_head. Still has to fire the browser twice. | |
May 19, 2014 at 17:12 | comment | added | user2059370 | Ok, thanks. I enqueued the jquery in functions.php- Still have the same result though, i need to load browser twice (safari) | |
S May 19, 2014 at 17:04 | history | suggested | eyoung100 | CC BY-SA 3.0 |
Added Apostrophes
|
May 19, 2014 at 16:59 | comment | added | eyoung100 | Yes, according to the WordPress Codex, it looks as if WordPress has trouble with remote Scripts, so download the script locally to your site then use the enqueue function. | |
May 19, 2014 at 16:53 | comment | added | user2059370 | You say I should enqueue javascript in general since thats the only linked script i use? | |
May 19, 2014 at 16:27 | comment | added | eyoung100 | Check the WordPress Codex for Using JavaScript. I think this will work if you download the script locally then use the enqueue function. | |
May 19, 2014 at 16:24 | review | Suggested edits | |||
S May 19, 2014 at 17:04 | |||||
May 19, 2014 at 15:45 | answer | added | pdme | timeline score: 1 | |
May 19, 2014 at 15:04 | history | asked | user2059370 | CC BY-SA 3.0 |