Title: Inserted HTML keeps getting removed!
Last modified: January 11, 2022

---

# Inserted HTML keeps getting removed!

 *  Resolved [astraobscura](https://wordpress.org/support/users/astraobscura/)
 * (@astraobscura)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/inserted-html-keeps-getting-removed/)
 * I am trying to configure the maintenance page to play a video as the background.
   I inserted the HTML:
 *     ```
       <video playsinline autoplay muted loop poster="noVideo.jpg" id="bgvid">
         <source src="video.mp4" type="video/webm">
         <source src="video.mp4" type="video/mp4">
       </video>
       ```
   
 * as well as the CSS:
 *     ```
       video {
         object-fit: cover;
         width: 100vw;
         height: 100vh;
         position: fixed;
         top: 0;
         left: 0;
       }
       ```
   
 * It removes the HTML for the video and won’t keep it there. It only leaves behind
   the HTML to show the image (for when the video doesn’t load or is still loading)
   How do I fix this??
    -  This topic was modified 4 years, 4 months ago by [astraobscura](https://wordpress.org/support/users/astraobscura/).

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

 *  [George J](https://wordpress.org/support/users/georgejipa/)
 * (@georgejipa)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/inserted-html-keeps-getting-removed/#post-15243365)
 * Hello [@astraobscura](https://wordpress.org/support/users/astraobscura/),
 * The **Text** is sanitized (using the ‘wp_kses_post` built-in function), and it
   does not accept every HTML tag you introduce.
 * Usually, I would recommend the [video] shortcode, but it doesn’t have options
   for all attributes you want (like muted or playsinline).
 * > [Video Shortcode](https://wordpress.org/support/article/video-shortcode/)
 * So, another idea would be to override the maintenance mode template and customize
   it however you need.
 * [https://github.com/andrianvaleanu/WP-Maintenance-Mode/blob/master/views/maintenance.php](https://github.com/andrianvaleanu/WP-Maintenance-Mode/blob/master/views/maintenance.php)
 * Also, there is a **Custom CSS** setting if you want to add custom CSS.
 * —
    George
    -  This reply was modified 4 years, 4 months ago by [George J](https://wordpress.org/support/users/georgejipa/).
    -  This reply was modified 4 years, 4 months ago by [George J](https://wordpress.org/support/users/georgejipa/).
    -  This reply was modified 4 years, 4 months ago by [George J](https://wordpress.org/support/users/georgejipa/).
      Reason: bad formatting
    -  This reply was modified 4 years, 4 months ago by [George J](https://wordpress.org/support/users/georgejipa/).
    -  This reply was modified 4 years, 4 months ago by [George J](https://wordpress.org/support/users/georgejipa/).
    -  This reply was modified 4 years, 4 months ago by [George J](https://wordpress.org/support/users/georgejipa/).
    -  This reply was modified 4 years, 4 months ago by [George J](https://wordpress.org/support/users/georgejipa/).
    -  This reply was modified 4 years, 4 months ago by [George J](https://wordpress.org/support/users/georgejipa/).
    -  This reply was modified 4 years, 4 months ago by [George J](https://wordpress.org/support/users/georgejipa/).
    -  This reply was modified 4 years, 4 months ago by [George J](https://wordpress.org/support/users/georgejipa/).
 *  Thread Starter [astraobscura](https://wordpress.org/support/users/astraobscura/)
 * (@astraobscura)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/inserted-html-keeps-getting-removed/#post-15246810)
 * so maintenance.php is the file that displays when maintenance mode is active?
   I can just write my own custom PHP then that displays whatever. Now will that
   reset if I turn maint. mode off and back on in the future or will it store whatever
   I uploaded?
 *  [George J](https://wordpress.org/support/users/georgejipa/)
 * (@georgejipa)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/inserted-html-keeps-getting-removed/#post-15247738)
 * Hello [@astraobscura](https://wordpress.org/support/users/astraobscura/),
 * > so maintenance.php is the file that displays when maintenance mode is active?
 * Yes.
 * > I can just write my own custom PHP then that displays whatever.
 * Yes.
 * > Now will that reset if I turn maint. mode off and back on in the future or 
   > will it store whatever I uploaded?
 * If you edit the template (maintenance.php) from the plugin directory, WordPress
   will overwrite it just on plugin update.
 * If you override the template (the way described [here](https://github.com/andrianvaleanu/WP-Maintenance-Mode/blob/master/views/maintenance.php)),
   your custom template will remain the same no matter what. The plugin will always
   load it when you activate the maintenance mode.
 * Hope this helps.
 * —
    George
    -  This reply was modified 4 years, 4 months ago by [George J](https://wordpress.org/support/users/georgejipa/).
    -  This reply was modified 4 years, 4 months ago by [George J](https://wordpress.org/support/users/georgejipa/).

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

The topic ‘Inserted HTML keeps getting removed!’ is closed to new replies.

 * ![](https://ps.w.org/wp-maintenance-mode/assets/icon-256x256.gif?rev=3027645)
 * [LightStart - Maintenance Mode, Coming Soon and Landing Page Builder](https://wordpress.org/plugins/wp-maintenance-mode/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-maintenance-mode/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-maintenance-mode/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-maintenance-mode/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-maintenance-mode/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-maintenance-mode/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [George J](https://wordpress.org/support/users/georgejipa/)
 * Last activity: [4 years, 4 months ago](https://wordpress.org/support/topic/inserted-html-keeps-getting-removed/#post-15247738)
 * Status: resolved