I just encountered the very same problem.
Switched over to using the “Slide Popup” video-feature, which works.
That’s not the ideal solution though, since I wanted to use the youtube-nocookie domain, which the plugin doesn’t want in that field.
In any case, I’ll be interested in any possible solutions or bugfixes regarding this problem too.
Edit: Sorry, I just realised I’m using the “Pro”-Version on that site, which is why I’m able to use the video-popup.
Since the issue seems to concern the base plugin though, I’ll let my entry stay here as a +1.
-
This reply was modified 4 years, 1 month ago by
baboehm.
We’re having the same iframe issue, but with google sheets instead of video. Looking forward to a resolution! Seems to be a new issue, we’re running 4.3.44
-
This reply was modified 4 years, 1 month ago by
levpros22. Reason: additional details
@mquinn611 – I’m assuming these are ‘iframe’ tags?
Can you please provide an example that I can test with?
(and @levpros22)
Also try adding this code to your “functions.php” file within your theme:
function gmt_allow_iframes_filter( $allowedposttags ) {
// Only change for users who can publish posts
if ( !current_user_can( 'publish_posts' ) ) return $allowedposttags;
// Allow iframes and the following attributes
$allowedposttags['iframe'] = array(
'align' => true,
'width' => true,
'height' => true,
'frameborder' => true,
'name' => true,
'src' => true,
'id' => true,
'class' => true,
'style' => true,
'scrolling' => true,
'marginwidth' => true,
'marginheight' => true,
);
return $allowedposttags;
}
add_filter( 'wp_kses_allowed_html', 'gmt_allow_iframes_filter' );
Or download the following plugin:
https://gomakethings.com/allowing-iframes-in-sanitized-wordpress-content/
(I recently added “wp_kses’ to Slide Anything in the latest release at the request of a security company)
-
This reply was modified 4 years, 1 month ago by
simonpedge.
-
This reply was modified 4 years, 1 month ago by
simonpedge.
I added the code to the functions.php file and that appeared to solve the problem. Thank you!
Ok, good to hear.
Could you provide me with an example of the IFRAME you were inserting – so I can do some testing. I want to add a checkbox option ‘Allow IFRAMEs in Slide Content’.
Ok, in the latest version of Slide Anything (version 2.3.45) I have added a filter to all IFRAME content within slides, so you do not require the ‘functions.php’ code change.
Below is the iframe I was trying to insert (from YouTube)
Thank you
<iframe width=”560″ height=”315″ src=”https://www.youtube.com/embed/gTf8Fe6tr3Y” title=”YouTube video player” frameborder=”0″ allow=”accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture” allowfullscreen></iframe>