Title: php code for template
Last modified: August 30, 2016

---

# php code for template

 *  Resolved [onealklea](https://wordpress.org/support/users/onealklea/)
 * (@onealklea)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/php-code-for-template-1/)
 * I am using Genesis Altitude theme and would like to use php code in the front-
   page template instead of the shortcode. This theme is setup differently with 
   different sections and it is not recognizing the shortcode in the widget for 
   the sections. Do you have php code instead of shortcode? BTW, it is working nicely
   with the pages.
 * [https://wordpress.org/plugins/wpmbytplayer/](https://wordpress.org/plugins/wpmbytplayer/)

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

 *  Plugin Author [pupunzi](https://wordpress.org/support/users/pupunzi/)
 * (@pupunzi)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/php-code-for-template-1/#post-6394569)
 * Hi,
    There’s no PHP code but you just need to place a bit of HTML code in the
   page you need it to make it work:
 *     ```
       <div class="mbYTPMovie" data-property="{videoURL:'xxx', opacity:1, autoPlay:false, containment:'body', startAt:0, stopAt:0, mute:true, vol:50, optimizeDisplay:true, showControls:true, printUrl:true, loop:true, addRaster:false, quality:'default', realfullscreen:true, ratio:'16/9', gaTrack:false, stopMovieOnBlur:true}"></div>
       ```
   
 * Just replace the data-property value with the real one.
 * Bye,
    Matteo
 *  [dstubblefield](https://wordpress.org/support/users/dstubblefield/)
 * (@dstubblefield)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/php-code-for-template-1/#post-6394758)
 * I have tried the HTML code above on the Studio Press Theme, Minimum Pro. I have
   placed it in every page and in the header without any luck.
 *  Plugin Author [pupunzi](https://wordpress.org/support/users/pupunzi/)
 * (@pupunzi)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/php-code-for-template-1/#post-6394759)
 * [@dstubblefield](https://wordpress.org/support/users/dstubblefield/):
    Do you
   have an URL where I can check your code?
 *  [dstubblefield](https://wordpress.org/support/users/dstubblefield/)
 * (@dstubblefield)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/php-code-for-template-1/#post-6394760)
 * Thanks, [http://ajs.photo/](http://ajs.photo/)
 *  Plugin Author [pupunzi](https://wordpress.org/support/users/pupunzi/)
 * (@pupunzi)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/php-code-for-template-1/#post-6394761)
 * From the source code of your page you injected the placeholder DIV as first element
   on the page and that is really bed :-). That code should be anyway after the 
   BODY tag.
    But you should not add any code extra if you set the background video
   from the YTPlayer settings page (As I can see you already did it).
 * The video is not visible because your theme has a wrapper DIV (“.site-inner”)
   that is hover the video and has a white background.
 * Just set it as “transparent” and the video will come out.
 * Somewhere in your CSS file:
 *     ```
       .site-inner {background-color: transparent!important;}
       ```
   
 * Bye,
    Matteo

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

The topic ‘php code for template’ is closed to new replies.

 * ![](https://ps.w.org/wpmbytplayer/assets/icon.svg?rev=1544312)
 * [mb.YTPlayer for background videos](https://wordpress.org/plugins/wpmbytplayer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpmbytplayer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpmbytplayer/)
 * [Active Topics](https://wordpress.org/support/plugin/wpmbytplayer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpmbytplayer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpmbytplayer/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [pupunzi](https://wordpress.org/support/users/pupunzi/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/php-code-for-template-1/#post-6394761)
 * Status: resolved