Support » Plugin: Video Background » Applying video background to body site-wide

  • Resolved surfpark


    Is it possible to use this plugin to apply a video background for all pages? For example, applying a video for the background of the body container on all pages.

Viewing 1 replies (of 1 total)
  • Plugin Author Blake


    Hi Surfpark,

    This is very possible. You will want to use a function to do this. Something like this will work:

     * Function to add [vidbg] shortcode to every page's footer.
    function theme_vidbg_add_to_every_page() {
      echo do_shortcode( '[vidbg container=”body” mp4=”#” webm=”#” poster=”#” muted=”true” loop=”true” overlay=”false” overlay_color=”#000″ overlay_alpha=”0.3″]' );
    add_action( 'wp_footer', 'theme_vidbg_add_to_every_page' );
    • This reply was modified 3 months, 1 week ago by  Blake.
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.