• Resolved lchamorro

    (@lchamorro)


    Hi there,

    I’ve been using this plugin to embed videos in tabs on product pages. I’ve noted that since update ver. 2.1.0, support for iframe tags do not appear to be supported. If you try to put in iframe tags and hit save, the tags are erased from the tab. Because of this, I’ve refrained from updating the plugin beyond ver. 2.0.23. Is this a known issue? Has anyone else encountered this problem with their tabs?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Barn2 Plugin Support

    (@barn2pluginsupport)

    Hi, @lchamorro.

    Thank you for bringing this to our attention. I apologize for my previous comment. It looks like it’s working on my test site upon further testing.

    See image1: https://prnt.sc/hT99XLHvtXZR
    See image2: https://prnt.sc/axnm1TBaqu9J
    See image3: https://prnt.sc/GCYizD11JZmE

    Could you please check for any plugin or theme conflicts? Kindly switch to StoreFront temporarily, then deactivate plugins one by one to see if the issue persists. If the problem disappears after deactivating a specific plugin, it indicates that particular plugin is causing the issue.

    I hope this helps. If you have any other questions, please don’t hesitate to ask.

    Best regards,
    Adrian

    Thread Starter lchamorro

    (@lchamorro)

    Hi there,

    Thank you for the reply. Yes, iframes do still work on global tabs. However, they do not work on a per product basis (i.e. when you check the box “Override the default tab content for this product” on a product listing). You can view the issue in the link below.

    Video Link

    Plugin Support Barn2 Plugin Support

    (@barn2pluginsupport)

    Hi,?@lchamorro.

    Thank you for providing the video. It was incredibly helpful in replicating the issue. I’ll make sure to inform our developer about this. Once again, thank you for bringing it to our attention.

    We will keep you posted.

    Best regards,
    Adrian

    Plugin Support Barn2 Plugin Support

    (@barn2pluginsupport)

    Hi,?@lchamorro.

    Good news! This functionality will be included in the upcoming update for both the free and pro versions.

    In the meantime, you can use the following code to preserve the iFrames within the product tabs:

    function custom_wpkses_post_tags( $tags, $context ) {
    if ( ‘post’ === $context ) {
    $tags[‘iframe’] = array(
    ‘src’ => true,
    ‘height’ => true,
    ‘width’ => true,
    ‘title’ => true,
    ‘allow’ => true,
    ‘frameborder’ => true,
    ‘allowfullscreen’ => true,
    );
    }
    return $tags;
    }

    add_filter( ‘wp_kses_allowed_html’, ‘custom_wpkses_post_tags’, 10, 2 );

    You can paste this code into plugins like Code Snippet or in the ‘functions.php’ file of your child theme.

    I hope this helps. Please let me know if you have further questions.

    Best regards,
    Adrian

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘iframe embed codes no longer supported?’ is closed to new replies.