Title: Empty div no iframe
Last modified: October 16, 2023

---

# Empty div no iframe

 *  Resolved [redwiper](https://wordpress.org/support/users/redwiper/)
 * (@redwiper)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/empty-div-no-iframe/)
 * Hi. It is strange behavior,on posts plugin work but on pages dont work.I use 
   acf fields exactly the same fields for shortcode.I also tested and made new acf
   fields with vysiwyg editor for shortcode but didnt work again.Then i create new
   page and put shortocde in default page wysiwig and did work. Do you maybe now
   why dont work for pages in acf wysiwig? I also deactivate other plugins but no
   conflcit. This is the output [https://prnt.sc/zusn2yLlaQIx](https://prnt.sc/zusn2yLlaQIx)

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

 *  Plugin Author [Alec Rust](https://wordpress.org/support/users/alecrust/)
 * (@alecrust)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/empty-div-no-iframe/#post-17129818)
 * Thanks for reporting this issue [@redwiper](https://wordpress.org/support/users/redwiper/).
 * For performance reasons Protected Video tries to only load its associated assets(
   JS and CSS files) when it [detects](https://github.com/AlecRust/protected-video/blob/64170492d5d6bdeec33be825e783df3ea39f8d93/includes/public.php#L117)
   that a Protected Video Gutenberg block, or Shortcode, is used in a post/page.
 * In the case of Advanced Custom Fields, the HTML it’s outputting to the page looks
   correct to me – the issue is that this “detection” is failing so the JS and CSS
   is not being loaded.
 * I’m not very familiar with ACF, but I see it’s free to install. Can you walk 
   me through how you created the player within ACF, so I can reproduce this locally?
   I may then be able to add some code to Protected Video to cover this case.
 * Another option, might be for me to add an option to Protected Video plugin settings
   to “Force asset loading”. When enabled this would always load the necessary JS/
   CSS on every page, regardless of whether a Protected Video player was detected
   on the page.
 *  Plugin Author [Alec Rust](https://wordpress.org/support/users/alecrust/)
 * (@alecrust)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/empty-div-no-iframe/#post-17129975)
 * [@redwiper](https://wordpress.org/support/users/redwiper/) I’ve released a new
   version of the plugin 1.10.7 which should load the necessary JS/CSS on “custom
   page template” pages which ACF seems to use.
 * Please can you update to this version of the plugin and let me know if this resolves
   your issue of the player not loading?
 * Please note that the player is not designed to load in the admin area, only the
   user-facing pages.
 *  Plugin Author [Alec Rust](https://wordpress.org/support/users/alecrust/)
 * (@alecrust)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/empty-div-no-iframe/#post-17149033)
 * [@redwiper](https://wordpress.org/support/users/redwiper/) can you let me know
   if the latest version fixed your issue?
 *  Thread Starter [redwiper](https://wordpress.org/support/users/redwiper/)
 * (@redwiper)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/empty-div-no-iframe/#post-17156967)
 * Hi sorry for delay. Yes, thank you. Video is now visible in acf field on any 
   page.Just want to ask is it now possible to manipulate with this with js…for 
   example i want to add autoplay nad stop video on scroll and play again when scroll
   up,that kind od things?
 *  Plugin Author [Alec Rust](https://wordpress.org/support/users/alecrust/)
 * (@alecrust)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/empty-div-no-iframe/#post-17157476)
 * [@redwiper](https://wordpress.org/support/users/redwiper/) thanks for confirming
   the latest version fixed your issue.
 * Regarding “manipulating with JS” my plugin just loads a [Plyr](https://plyr.io/)
   player into your page. From there you can do what you like based on the capabilities
   of Plyr, this [events documentation](https://github.com/sampotts/plyr#events)
   might be useful.

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

The topic ‘Empty div no iframe’ is closed to new replies.

 * ![](https://ps.w.org/protected-video/assets/icon-256x256.png?rev=2930887)
 * [Protected Video](https://wordpress.org/plugins/protected-video/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/protected-video/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/protected-video/)
 * [Active Topics](https://wordpress.org/support/plugin/protected-video/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/protected-video/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/protected-video/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Alec Rust](https://wordpress.org/support/users/alecrust/)
 * Last activity: [2 years, 5 months ago](https://wordpress.org/support/topic/empty-div-no-iframe/#post-17157476)
 * Status: resolved