Treehouse: Grow your CSS skills. Land your dream job.

Responsive video help

  • # May 27, 2013 at 11:49 am

    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 –

    Any help would be appreciated – Thanks, Clayton

    # May 27, 2013 at 11:58 am

    Thanks for the quick reply. I added to the above 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.

    # May 27, 2013 at 1:42 pm

    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)”

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.