How to insert a flv video into the home page of a WordPress theme?

by MarkR
12 replies
I have a flv video that I want to insert into the top of my home page of my WordPress Blog. The theme has a bunch of text widgets on the main body of home page. Can I stick the code in a widget or do I have to edit the theme?

Anyone know how to do that? What does the code look like? Where do I put it?

Thanks!

Mark
#flv #home #insert #page #theme #video #wordpress
  • Profile picture of the author Kirk Ward
    Originally Posted by MarkR View Post

    I have a flv video that I want to insert into the top of my home page of my WordPress Blog. The theme has a bunch of text widgets on the main body of home page. Can I stick the code in a widget or do I have to edit the theme?

    Anyone know how to do that? What does the code look like? Where do I put it?

    Thanks!

    Mark
    You can't put much of anything in a text widget ... but you can put it between a couple and make it "look like" it's in one. Check out mine on Consultant Supply Room

    It is embedded in regular HTML that the CSS formats to look just like a widget.

    Kirk
    Signature
    "We are not here to sell a parcel of boilers and vats, but the potentiality of growing rich beyond the dreams of avarice."

    Dr. Samuel Johnson (Presiding at the sale of Thrales brewery, London, 1781)
    {{ DiscussionBoard.errors[1263435].message }}
  • Profile picture of the author barefootsusan
    Try Free Video Codes - Video Code Maker - Free Html Codes Just type in the link to where the flv video is online and you just go through the simple steps. Easy-peasy. )
    Signature

    {{ DiscussionBoard.errors[1263603].message }}
    • Profile picture of the author Bruce Hearder
      Have you tried code that is like the following :

      <object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="327" height="235">
      <param name="movie" value=video.flv" />
      <param name="quality" value="high" />
      <embed src="video.flv" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="327" height="235"></embed>
      </object>

      It should most types of HTML work just fine in a "text box" widget.

      check out Embedded Media HTML Generator

      For more info on how to embedd various video file formats into any webpage.

      Hope this helps

      Bruce
      {{ DiscussionBoard.errors[1264197].message }}
  • Profile picture of the author Fernando Veloso
    If it's in the header, you need to edit header.php, add some CSS class and all.

    Maybe you can ask a fellow coder?
    Signature
    People make good money selling to the rich. But the rich got rich selling to the masses.
    {{ DiscussionBoard.errors[1264236].message }}
  • Profile picture of the author DynamicRevelation
    Assuming you're hosting your own blog...

    I'd try the Headspace2 plugin- it'll allow certain plugins to be activated for specific pages (like Wordpress Video Plugin or Video Widget), and also allows you to choose which page you want to designate as your home page.

    Go to your control Panel (wp-admin.php)... Settings > Reading > Front page displays: (select page)...

    I'm sure you know what the front page means, but remember that your actual blog will show on your "Posts Page." (you'll know what I mean when you get there.)

    Hope that helps! Feel free to PM me
    {{ DiscussionBoard.errors[1269486].message }}
    • Profile picture of the author MarkR
      Wow, I'm totally embarrassed to admit I've tried most of these suggestions and still can't get it to work. I gave up on trying to integrate it into a WordPress home page for now and just built a simple HTML page and attempt-1 and attempt-2 just don't seem to play the video.

      Still cranking on this. I paid good money for a great video and can't use it! LOL

      Thanks for all the help!

      EDIT: I have attempt-1 working with it hosted on YouTube. But I wanted it hosted locally on my server, not have the controls show, and have it auto-play.

      Mark
      {{ DiscussionBoard.errors[1283537].message }}
  • Profile picture of the author Bruce Hearder
    If you could show us the wordpress page with the video in it, maybe someone here might spot what is wrong with it..

    Take care

    Bruce
    {{ DiscussionBoard.errors[1283632].message }}
    • Profile picture of the author MarkR
      Bruce,

      Thanks. The home page is here. I have the video hosted on YouTube and playing in a widget. It's functional in it's current form, but I would have preferred 1) auto-playing it locally on my site, 2) not allowing the controls to show, and 3) controlling the video size better. Embedding it right in the theme code would allow me to do that I believe, but I don't know what the code looks like.

      If it helps anyone else, Lon Naylor has got a great YouTube code generator that makes embedding a YouTube video real painless. It's here. I love that site.
      {{ DiscussionBoard.errors[1283801].message }}
      • Profile picture of the author Kirk Ward
        Mark,

        I know squat about coding, but this is the html I inserted in a sidebar on my site and it seems to work. You can see it at Consultant Supply Room The controls show, but that can be handled in the flv I think. ...

        Code:
        <!--video-->
        <h2>Welcome From Kirk</h2>
        <div class="video">
        <object id="player1" type="application/x-shockwave-flash" data="http://consultantsupplyroom.com/csrvideos/player_flv_maxi.swf" width="205" height="148">
        <noscript><a href="http://consultantsupplyroom.com">Script Not Enabled In Your Browser</a></noscript>
        <param name="movie" value="http://consultantsupplyroom.com/csrvideos/player_flv_maxi.swf" />
        <param name="allowFullScreen" value="true" />
        <param name="FlashVars" value="configxml=http://consultantsupplyroom.com/csrvideos/WelcomeVideo_090501.xml" />
        </object> </div>
        Does that help any?

        Kirk
        Signature
        "We are not here to sell a parcel of boilers and vats, but the potentiality of growing rich beyond the dreams of avarice."

        Dr. Samuel Johnson (Presiding at the sale of Thrales brewery, London, 1781)
        {{ DiscussionBoard.errors[1286103].message }}
  • Profile picture of the author Fernando Veloso
    Mark,

    Is the original a mp4 or a Camtasia file?

    Whats the file extension you have on your video - not the one from Youtube?
    Signature
    People make good money selling to the rich. But the rich got rich selling to the masses.
    {{ DiscussionBoard.errors[1286779].message }}
  • {{ DiscussionBoard.errors[1287616].message }}

Trending Topics