- This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- The forum ‘JavaScript’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › JavaScript › Responsive video help
I was trying to implement this technique on CSS-Tricks Chris shared, in a wordpress theme. I can make it work with static html page, but its not working with a wordpress theme for some reason. I have a plain template I have created using initializer, they provide a main.js file for any javascript to be used. I put the javascript for the youtube resize in that file. Its included in the head. I have the wordpress wp enque script in the head above the include for the main.js and it doesnt seem to work. Its currently on my local server for development.
here is the wrapper I put around the javascript for wordpress that I have used before to get javascript to work – http://pastebin.com/at5A4Xab
Any help would be appreciated – Thanks, Clayton
Thanks for the quick reply. I added to the above http://pastebin.com/at5A4Xab to show how I wrapped the js for it to work with wordpress. I will review the video to see if I pick up on anything.
after using what he said to do in that screencast I get the error in console “jQuery is not defined jquery.fitvids.js:88
(anonymous function)”