Title: Adding a persistent play button
Last modified: October 11, 2023

---

# Adding a persistent play button

 *  [sloweye](https://wordpress.org/support/users/sloweye/)
 * (@sloweye)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/adding-a-persistent-play-button/)
 * I needed a persistent play button, and was able to use [@writegnj](https://wordpress.org/support/users/writegnj/)‘
   s [answer from 2015](https://wordpress.org/support/topic/no-play-button-overlay-image-for-video/#post-5947325)
   to get most of the way there. Thank you [@writegnj](https://wordpress.org/support/users/writegnj/)
 * I added an onResize in addition to the code from that previous answer. So the
   complete additional code added before the closing })(jQuery); looks like this:
 *     ```wp-block-code
       // Add width, height values and play class to video div
   
       var fvplw = $('.fvp-dynamic').width();
   
       var fvplh = $('.fvp-dynamic').height();
   
       $('.fvp-actionicon').css({'width': fvplw, 'height': fvplh});
   
       $('.fvp-actionicon').addClass('play');
   
       });
   
       // Rewrite height and width on resize
   
       $(window).on('resize',function() {
   
       var fvplw = $('.fvp-dynamic').width();
   
       var fvplh = $('.fvp-dynamic').height();
   
       $('.fvp-actionicon').css({'width': fvplw, 'height': fvplh});
   
       }).trigger('resize');
       ```
   
 * The version of the plugin that I was using a frontend.min.js file, so I minified
   the contents of frontend.js after making the edits, and copied that over to the
   minified version.
 * You can also make changes directly to the plugin’s frontend.css file to change
   the icon and color used in the overlay. The two rules that I modified were:
 *     ```wp-block-code
       .fvp-overlay .fvp-actionicon,
       .fvp-dynamic .fvp-actionicon {
        // your custom css
       }
       ```
   
 * and
 *     ```wp-block-code
       .fvp-overlay .fvp-actionicon.play,
       .fvp-dynamic .fvp-actionicon.play {
        // your custom css
       }
       ```
   
 * I hope that saves someone else some time.

The topic ‘Adding a persistent play button’ is closed to new replies.

 * ![](https://ps.w.org/featured-video-plus/assets/icon.svg?rev=1170997)
 * [Featured Video Plus](https://wordpress.org/plugins/featured-video-plus/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/featured-video-plus/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/featured-video-plus/)
 * [Active Topics](https://wordpress.org/support/plugin/featured-video-plus/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/featured-video-plus/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/featured-video-plus/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [sloweye](https://wordpress.org/support/users/sloweye/)
 * Last activity: [2 years, 8 months ago](https://wordpress.org/support/topic/adding-a-persistent-play-button/)
 * Status: not a support question