Need to embed YT Video in Wordpress

6 replies
  • WEB DESIGN
  • |
I posted this in the programmers section but think it might need to be here.

Hello, I need to embed a youtube video into a wordpress theme. I don't need it in the post or page but in the actual layout. Anyone have any suggestions?

I am using the eproduct template and need the video where the software box is on the picture.



At the risk of sounding totally stupid, everything I have found says that I need to add to my html pages. However all I have is .php and .css :confused:
any help would be greatly appreciated.
#embed #video #wordpress
  • Profile picture of the author Istvan Horvath
    When it says "into html"... you can safely put it into a template php file, too.
    That place (where the image is) should be in the header.php file of your active theme.

    (Learn the proper terminology: WP is using themes which are made of several template files.)
    Signature

    {{ DiscussionBoard.errors[3522580].message }}
  • Profile picture of the author tomkane
    I don't think (although I don't know it) it's the header.php

    Take a look at the index.php or home.php, and see whether you see "include" somewhere on the top referring to a featured.php or similar.

    I know, this sounds complicated if you are not familiar with programming. Just drop me a PM and I'll see what I can do.
    {{ DiscussionBoard.errors[3522603].message }}
  • Profile picture of the author tomkane
    Sorry for the double post but I am am not able to send PMs, this was an oversight on my part.

    Remember to always make backups of your site. I would replace the image code with the YouTube video code:

    Code:
    <div class="productrays">
                             <?php if ( get_option('bizzthemes_frontpage_image') != "") { ?>    
                                 <img src="<?php echo get_option('bizzthemes_frontpage_image'); ?>" alt=""  />
                             <?php } ?>
          </div>
    to

    Code:
    <div class="productrays">
                              <?php if ( get_option('bizzthemes_frontpage_image') != "") { ?>    
                                  <YouTube Video Code Here>
                              <?php } ?>
           </div>
    Let me know whether it worked.
    {{ DiscussionBoard.errors[3523986].message }}
    • Profile picture of the author tonicemarketing
      That Worked!!! Thanks so much! I have been trying to figure this out for 4 days. should have just come here first. One last question though. Is there a way to move the player to the left? It is aligned a little too much to the right.

      Thanks so much again!
      {{ DiscussionBoard.errors[3524144].message }}
  • Profile picture of the author tomkane
    That's difficult to say without seeing the stylesheet. Do you have Skype where we could chat or the site online?
    {{ DiscussionBoard.errors[3524474].message }}

Trending Topics