Video Will Not Embed in WP Theme

7 replies
I'm not sure what's going on with this theme but when I enter the embed code for a video it will not load. See the URl below...

Internet Marketers Themes Demo3 -

I suspect that there is something wrong in the Theme Functions file but not certain.

Any suggestions on how I can correct this?

Ed
#embed #theme #video
  • Profile picture of the author 1stranked
    Can you post the code you are using to embed YouTube video so we can check?
    {{ DiscussionBoard.errors[8169579].message }}
  • Profile picture of the author 1stranked
    I assume you are trying to add YouTube video. Your page looks like you are using iframe.
    {{ DiscussionBoard.errors[8169582].message }}
  • Profile picture of the author Patrick
    lol why don't you contact that "internet marketer" who has sold you this and kept you in a difficult situation ?

    Edit: Oops..I just saw that you are the one selling this theme.
    {{ DiscussionBoard.errors[8169671].message }}
  • Profile picture of the author David V
    Here is why.

    This is the code in your source:
    Code:
    <iframe width="&quot;600&quot;" height="&quot;310&quot;" src="&quot;http://www.youtube-nocookie.com/embed/6PG6WEF716o?rel=0&quot;" frameborder="&quot;0&quot;" allowfullscreen=""></iframe>

    This is the code after being corrected:
    Code:
    <iframe width="600px" height="310px" src="http://www.youtube-nocookie.com/embed/6PG6WEF716o?rel=0" frameborder="0" allowfullscreen=""></iframe>
    WordPress by default will not do this, so it's possibly in your theme. I didn't dig into what your theme is, so I can't tell you where to correct it.

    First, go back to the default theme and try again. Paste the embed code again though, don't use what you already put in there.
    At least you can narrow it down to the theme for sure. (could be a plugin as well).
    {{ DiscussionBoard.errors[8170957].message }}
    • Profile picture of the author danbrey2010
      Originally Posted by David V View Post

      Here is why.

      This is the code in your source:
      Code:
      <iframe width="&quot;600&quot;" height="&quot;310&quot;" src="&quot;http://www.youtube-nocookie.com/embed/6PG6WEF716o?rel=0&quot;" frameborder="&quot;0&quot;" allowfullscreen=""></iframe>
      This is the code after being corrected:
      Code:
      <iframe width="600px" height="310px" src="http://www.youtube-nocookie.com/embed/6PG6WEF716o?rel=0" frameborder="0" allowfullscreen=""></iframe>
      WordPress by default will not do this, so it's possibly in your theme. I didn't dig into what your theme is, so I can't tell you where to correct it.

      First, go back to the default theme and try again. Paste the embed code again though, don't use what you already put in there.
      At least you can narrow it down to the theme for sure. (could be a plugin as well).

      Thank you for helping but it's still not embeding correctly. Even after I corrected it using the code above.

      I don't have any plugins installed.

      Any suggestions?
      {{ DiscussionBoard.errors[8171128].message }}
  • Profile picture of the author David V
    Did you go back to the default theme?
    {{ DiscussionBoard.errors[8171144].message }}
  • Profile picture of the author David V
    It's not uncommon for themes to use some variation of this:

    Code:
    remove_filter('the_content', 'wpautop');
    remove_filter('the_content', 'wptexturize');
    add_filter('the_content', 'my_formatter', 99);
    Something like this can cause issues with video links:
    add_filter('the_content', 'my_formatter', 99);

    May not be your issue, but if your theme is doing anything like this, just comment it out and then test your embed link again.
    {{ DiscussionBoard.errors[8171189].message }}

Trending Topics