• Resolved carolineanddimitri

    (@carolineanddimitri)


    Hi guys,

    I am trying to embed a video in the maintenance page. I pasted the embed snippet from Vimeo in the text editor.

    The <iframe> block gets deleted.

    Is this for security/XSS issues? Is there an option to embed a video?

    Cheers and thanks for a great plugin,

    Dimitri

Viewing 1 replies (of 1 total)
  • Hello @carolineanddimitri,

    Right now there is no (builtin) option to embed a video. In a future release (version 2.1) I will add a shortcode for embeding the videos (vimeo and youtube).

    Until that, you have 2 ways to add the embed:

    1. using wpmm_text filter:

    
    // place it in functions.php of your active theme
    add_filter('wpmm_text', 'wpmm_add_video', 10, 1);
    
    function wpmm_add_video($content) {
     $content .= '<iframe src="https://player.vimeo.com/video/159848031" width="640" height="360" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>';
    
     return $content;
    }
    

    2. Copy maintenance.php from wp-content/plugins/wp-maintenance-mode/views/ -> wp-content/ (or your active theme folder) and rename to wp-maintenance-mode.php. This way you can edit the file however you need.

    Keep in touch!

    • This reply was modified 9 years, 4 months ago by George J.
    • This reply was modified 9 years, 4 months ago by George J.
    • This reply was modified 9 years, 4 months ago by George J.
Viewing 1 replies (of 1 total)

The topic ‘Embed Video in Maintenance page’ is closed to new replies.