• Resolved Propos

    (@propos)


    Hi,

    The latest updates messed up the WordPress embed function. We have a lot of YouTube videos embedded in our faqs and they have not been working after release 1.3.0.

    Embed does work on single faq/post pages but not in list/display pages. Looking at the code of the page the plugin does render the embed <div> but not the <iframe>, which is used to display the videos. In the single faq pages, everything works as intended.

    I have tried disabling other plugins and rewriting the faqs and also different kinds of ways to embed the videos.. always with the same results. Does the newest releases not allow iframes or where the problem might be? Have someone else had the same kinds of problems? We have also embedded some Instagram photos and have the same problem with those, too.

    For now, our only option is to use the old 1.2.3 version of this plugin, which works fine with embedded videos.

Viewing 12 replies - 1 through 12 (of 12 total)
  • Hi,

    Thanks for contacting us for your issue.

    This is Sungraiz from Technical Support Department. From now on, I’ll be at your assistance.

    We are using the WordPress default method for contents output which is a standard and secure way and you know by default, WordPress doesn’t allow iframes in the post contents.

    You can enable it by adding the following code in your theme’s functions.php

    
    /**
     * Add iFrame to allowed wp_kses_post tags
     *
     * @param array  $tags Allowed tags, attributes, and/or entities.
     * @param string $context Context to judge allowed tags by. Allowed values are 'post'.
     *
     * @return array
     */
    function custom_wpkses_post_tags( $tags, $context ) {
    
    	if ( 'post' === $context ) {
    		$tags['iframe'] = array(
    			'src'             => true,
    			'height'          => true,
    			'width'           => true,
    			'frameborder'     => true,
    			'allowfullscreen' => true,
    		);
    	}
    
    	return $tags;
    }
    
    add_filter( 'wp_kses_allowed_html', 'custom_wpkses_post_tags', 10, 2 );
    

    Please let me know if i can help you with any other questions.

    Regards,

    Hi,

    ?I hope that your recent visit to our support forum is satisfactory.

    We would love it if you shared your experience as our plugin review.
    ?
    ?Thanks,

    Réka

    (@rekazyntern)

    Hi,
    We’ve got this problem still, the videos don’t shown on the front page.
    https://blog.zyntern.com/help/

    I embedded it in the drop down menu but it is not working. But it does not indicate an error.
    The weird thing is that everything else works fine (like pictures, buttons).
    Do you have any other solutions for this problem?
    Thank you so much,
    Réka

    Hi,

    Did you try the code snippet which i have provided in the previous reply?

    You have to allow the iframes in WordPress posts so you have to add the above code in the theme’s functions.php

    If you still facing this issue kindly email your WordPress login credentials at the following address. I’ll check it for you.

    [email protected]

    Regards,

    Hello,

    I was trying to embed a YouTube video. I have embedded the code snippet from your previous answer – but only a preloader appears! He loads and loads and loads …

    https://sorel.de/service-support/faq/?w3tc_note=flush_all

    Other videos on the site are running. Do you have any solutions for this problem?
    Many thanks!

    Regards,
    Christiane

    • This reply was modified 4 years, 6 months ago by sorel2017.

    Hi @sorel2017,

    The page you have shared doesn’t have our FAQs plugin. Please recheck and let me know if you are still facing this issue.

    Regards,

    Hi,
    sure, the groups and the first toggle are from your plugin. The video in the toggle is not shown.

    I have inserted the following shortcode:
    [faqs style=”accordion” filter=”true”]

    https://sorel.de/service-support/faq

    Regards,

    Hi @sorel2017,

    I have checked it and it looks like you are using a third-party source to add iframes. Did you try a simple youtube embed code? If not then please try it because after adding the above script, normal iframe should work.

    Regards,

    Hello,
    I use the link from YouTube. I have tried the following variants:

    https://youtu.be/HS9p8GmT7KQ

    – <iframe width=”560″ height=”315″ src=”https://www.youtube.com/embed/HS9p8GmT7KQ&#8221; frameborder=”0″ allow=”accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture” allowfullscreen></iframe>

    The strange thing is, on the separate page of the FAQ https://sorel.de/faq/wie-updatet-man-einen-sorel-regler-per-updateplatine/ the video is loaded and displayed.

    Regards,

    • This reply was modified 4 years, 5 months ago by sorel2017.

    Hi,

    Please try the following simple iframe.

    <iframe width="560" height="315" src="https://www.youtube.com/embed/7e90gBu4pas" frameborder="0" allowfullscreen></iframe>

    You can also check it by disabling other plugins.

    Regards,

    Hi,

    your video didn’t work either. I have deactivated the following plugin: https://de.www.ads-software.com/plugins/a3-lazy-load/
    now it’ s works!

    Regards,

    Hi @sorel2017,

    I’m glad I was able to assist you. We would love it if you shared this experience as our plugin review.
    ?
    Regards,

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Embed not working on display pages’ is closed to new replies.