• I’m trying to add one of the YouTube scripts on this page to a page on my WordPress site. Kindly let me know how to make it work. I know how to get it to work on a regular HTML page but not on WordPress.

Viewing 3 replies - 1 through 3 (of 3 total)
  • WordPress supports embeds…simply put the link on the page or post. If you want more control you can use the short codes.

    http://codex.wordpress.org/Embeds

    Thread Starter clifton11221

    (@clifton11221)

    It’s more than an embed. I’m trying to utilize the code below:

    <form onsubmit="ytEmbed.init({'block':'youtubeDivSearch','type':'search','q':document.getElementById('ytSearchField').value,'results': 5,'order':'most_relevance'}); return false;">
      <input  type="text" id="ytSearchField">  <input type="submit" value="  Search  ">
    </form>
    Thread Starter clifton11221

    (@clifton11221)

    I got it to work… To fix the problem, I had to correct the location of the javascript file.

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Add YouTube Embed Code To WordPress Page’ is closed to new replies.