Title: Adding Video into the Theme
Last modified: August 20, 2016

---

# Adding Video into the Theme

 *  [kaffe_x](https://wordpress.org/support/users/kaffe_x/)
 * (@kaffe_x)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/adding-video-into-the-theme/)
 * I want to embed a video of the night sky into my theme and I can’t seem to get
   that to happen. I don’t want to use plugins, unless that’s the only solution.
   I prefer to use code, is there a way to embed video into a .php page??
 * Thanks

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

 *  [Pioneer Web Design](https://wordpress.org/support/users/swansonphotos/)
 * (@swansonphotos)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/adding-video-into-the-theme/#post-2936780)
 * Using [this tutorial](http://bavotasan.com/2011/shortcode-for-html5-video-tag-in-wordpress/),
   create the HTML5 Video Shortcode
 * Include now in your page template per this example:
 *     ```
       <div id="your_created_css_id">
       <?php do_shortcode('[video5_shortcode_per_instructions_here]'); ?>
       </div>
       ```
   
 * Of course, you need to upload the video…and ensure your server can deliver the
   bandwidth required…
 *  Thread Starter [kaffe_x](https://wordpress.org/support/users/kaffe_x/)
 * (@kaffe_x)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/adding-video-into-the-theme/#post-2936783)
 * okay thanks I’ll try this.
 *  Thread Starter [kaffe_x](https://wordpress.org/support/users/kaffe_x/)
 * (@kaffe_x)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/adding-video-into-the-theme/#post-2936796)
 * do I edit this part in the code? [video5_shortcode_per_instructions_here]
 *  Thread Starter [kaffe_x](https://wordpress.org/support/users/kaffe_x/)
 * (@kaffe_x)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/adding-video-into-the-theme/#post-2936797)
 * It didn’t work? It said that the video format wasn’t supported. It was a .mp4
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [13 years, 10 months ago](https://wordpress.org/support/topic/adding-video-into-the-theme/#post-2936798)
 * Upload your video to youtube
 * then find a tutorial how to link youtube videos into your page
 *  Thread Starter [kaffe_x](https://wordpress.org/support/users/kaffe_x/)
 * (@kaffe_x)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/adding-video-into-the-theme/#post-2936800)
 * I really don’t want to use a third party website if I can do it on my own server..
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [13 years, 10 months ago](https://wordpress.org/support/topic/adding-video-into-the-theme/#post-2936802)
 * This tutorial shows mp4 working…
    [http://www.w3schools.com/html5/html5_video.asp](http://www.w3schools.com/html5/html5_video.asp)
 * Maybe try flash after?
 *  [Pioneer Web Design](https://wordpress.org/support/users/swansonphotos/)
 * (@swansonphotos)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/adding-video-into-the-theme/#post-2936804)
 * > do I edit this part in the code? [video5_shortcode_per_instructions_here]
 * Yes, per the instructions in first link above…
 * Would be something like:
 *     ```
       [video5 src="http://your-site/videos/your-video.mp4" width="720" height="480"]
       ```
   
 * Modify this to your needs and you can also [add additional optional attributes](http://www.w3schools.com/html5/tag_video.asp)
 *  Thread Starter [kaffe_x](https://wordpress.org/support/users/kaffe_x/)
 * (@kaffe_x)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/adding-video-into-the-theme/#post-2936805)
 * I did what you told me to do and I get this: [http://kglyphics.com/](http://kglyphics.com/)
 *  [Pioneer Web Design](https://wordpress.org/support/users/swansonphotos/)
 * (@swansonphotos)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/adding-video-into-the-theme/#post-2936808)
 * Again, you can add additional optional attributes, for example, autoplay – I 
   would make it smaller (to save bandwidth)…
 * Final note…older browsers will not see this as they are not html5, so you could
   add a conditional and link just them to a flash video…
 *  Thread Starter [kaffe_x](https://wordpress.org/support/users/kaffe_x/)
 * (@kaffe_x)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/adding-video-into-the-theme/#post-2936809)
 * Its not working?
 *  [Pioneer Web Design](https://wordpress.org/support/users/swansonphotos/)
 * (@swansonphotos)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/adding-video-into-the-theme/#post-2936831)
 * Yes, it worked.
 *  Thread Starter [kaffe_x](https://wordpress.org/support/users/kaffe_x/)
 * (@kaffe_x)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/adding-video-into-the-theme/#post-2936881)
 * I’m seeing “Video format or MiME type is not supported” I’m using firefox.
 *  [Pioneer Web Design](https://wordpress.org/support/users/swansonphotos/)
 * (@swansonphotos)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/adding-video-into-the-theme/#post-2936884)
 * That is correct for h264 video in FF, the workaround is as I noted above, provide
   an additional video format that will play in FF and older browsers and set up
   a conditional to test for user agent strings.
 * [http://www.mediawiki.org/wiki/Extension:HTML5video](http://www.mediawiki.org/wiki/Extension:HTML5video)
 * This [post](http://wordpress.org/support/topic/php-conditional-statement-for-user-agent-browser?replies=13)
   should help also.
 * [This too](http://www.webmaster-source.com/2009/06/21/detect-a-visitors-browser-in-wordpress/)
 * WordPress supports testing for the user agent string(s)
 *  Thread Starter [kaffe_x](https://wordpress.org/support/users/kaffe_x/)
 * (@kaffe_x)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/adding-video-into-the-theme/#post-2936915)
 * Thanks, I’ll look into this.
 * Sorry if you’ve stated it before, I’m relatively new to the wordpress code so
   it may have been a bit unclear for me earlier.

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

The topic ‘Adding Video into the Theme’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 15 replies
 * 3 participants
 * Last reply from: [kaffe_x](https://wordpress.org/support/users/kaffe_x/)
 * Last activity: [13 years, 10 months ago](https://wordpress.org/support/topic/adding-video-into-the-theme/#post-2936915)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
