Title: [hack] How to hardcode player into template
Last modified: August 22, 2016

---

# [hack] How to hardcode player into template

 *  [aldoemilio](https://wordpress.org/support/users/aldoemilio/)
 * (@aldoemilio)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/hack-how-to-hardcode-player-into-template/)
 * Hello, I need to hardcode the player in my home page. It has a responsive design,
   and it displays a facebook iframe occuping 1/3. half or the full widht of the
   page depending on the viewport width. I want to show a video on the remaining
   width, or below, (depending on the viewport current width).
    To achieve the four
   needed widths in the FB iframe, I created four divs that hide or show dinamically
   and hardcoded them into the home page template. This is needed, because the iframe
   content loads once, it does not reload when changing viewport width. The video
   width must have the same behaviour, so I thinked on harcoding four videoplayer,
   into the divs corresponding to each responsive width. Any help will be welcomed.
 * [https://wordpress.org/plugins/videojs-html5-video-player-for-wordpress/](https://wordpress.org/plugins/videojs-html5-video-player-for-wordpress/)

The topic ‘[hack] How to hardcode player into template’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/videojs-html5-video-player-for-wordpress.
   svg)
 * [Video.js - HTML5 Video Player for Wordpress](https://wordpress.org/plugins/videojs-html5-video-player-for-wordpress/)
 * [Support Threads](https://wordpress.org/support/plugin/videojs-html5-video-player-for-wordpress/)
 * [Active Topics](https://wordpress.org/support/plugin/videojs-html5-video-player-for-wordpress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/videojs-html5-video-player-for-wordpress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/videojs-html5-video-player-for-wordpress/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [aldoemilio](https://wordpress.org/support/users/aldoemilio/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/hack-how-to-hardcode-player-into-template/)
 * Status: not resolved