• Resolved mquinn611

    (@mquinn611)


    I’ve been using this plug in for a long time. I went into the slider today to do some editing and the video code disappeared on all 9 slides. I re-entered the codes (both YouTube and Vimeo) and soon as I hit “save” they disappeared again.

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • 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 2 years, 7 months 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 2 years, 7 months ago by levpros22. Reason: additional details
    Plugin Author simonpedge

    (@simonpedge)

    @mquinn611 – I’m assuming these are ‘iframe’ tags?

    Can you please provide an example that I can test with?
    (and @levpros22)

    Plugin Author simonpedge

    (@simonpedge)

    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 2 years, 7 months ago by simonpedge.
    • This reply was modified 2 years, 7 months ago by simonpedge.
    Thread Starter mquinn611

    (@mquinn611)

    I added the code to the functions.php file and that appeared to solve the problem. Thank you!

    Plugin Author simonpedge

    (@simonpedge)

    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’.

    Plugin Author simonpedge

    (@simonpedge)

    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.

    Thread Starter mquinn611

    (@mquinn611)

    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&#8221; title=”YouTube video player” frameborder=”0″ allow=”accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture” allowfullscreen></iframe>

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Slides won’t save Video iframe code’ is closed to new replies.