fbpx

Home Forums Booster Plus Customer Forum Custom Tabs with iframe/YouTube Videos are not shown – plugin update version 6.0

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #43130
    Omri Loutz
    Participant

    After plugin update to 6.0.0, from some reason the custom product tabs with embedded YouTube videos (which is iframe), is not saved once you update product page, and even if the content is there in older product pages, it is now not shown in the live page.

    #43140
    Rony P
    Participant

    Hello Omri,

    Actually, Woocommerce is restricted some HTML tags to sanitize the input and output.
    Booster is dependent on the Woocommerce structure and that’s why the saved code is deleted from the code and not shown in the product tab.
    But don’t worry, I have a solution. on this. Can you please follow the below steps to fix this issue?

    Go to Admin > Booster > Emails & Misc. > Custom PHP Module
    Enable Custom PHP Module
    Add the below code into the “Custom PHP” block.
    if ( ! function_exists( ‘wcj_add_allowed_html_custom’ ) ) {
    function wcj_add_allowed_html_custom( $allowed_html, $context ) {
    $allowed_extra_html = array(
    ‘iframe’ => array(
    ‘width’ => true,
    ‘height’ => true,
    ‘src’ => true,
    ‘frameborder’ => true,
    ‘allow’ => true,
    ‘allowfullscreen’ => true,
    ),
    );
    $allowed_merged_html = array_merge_recursive( $allowed_html, $allowed_extra_html );
    return $allowed_merged_html;
    }
    add_filter( ‘wp_kses_allowed_html’, ‘wcj_add_allowed_html_custom’, PHP_INT_MAX, 2 );
    }
    Save the settings
    Check the Product tag settings/configuration and the output.

    This will work for you.
    Let me know if it is working for you or not. 🙂

    Thanks,
    Booster.io – Support Team

    #43595
    Rony P
    Participant

    Hello,

    We have just released a new version of booster v6.0.1.
    Can you please upgrade the plugin and confirm whether your fix has been included or not?

    Kind Regards,
    RonyP – Support Team

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.