• Resolved driftmaps

    (@driftmaps)


    I am trying to show a google calendar for each users profile. However whenever I try and use the text editor block, it shows it fine on Preview, but once its published the page does not show it at all..

    any ideas on when this will be available?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Yurii

    (@yuriinalivaiko)

    Hello @driftmaps

    Please provide more details. How do you show a google calendar? Do you use a shortcode or JavaScript code to add an iframe? Or you just add a raw HTML? Take a screenshot with the field settings if possible.

    Note that <iframe> HTML tag is not allowed content. The field content is sanitized using the wp_kses_post function. This function filters content with allowed HTML tags and attributes. You can use the wp_kses_allowed_html hook if you wish to extend allowed HTML tags. See example below.

    // Allow <iframe> in content.
    add_filter( 'wp_kses_allowed_html', function( $allowed_html, $context ) {
    if ( 'post' === $context ) {
    $allowed_html['iframe'] = array(
    'allow' => true,
    'frameborder' => true,
    'loading' => true,
    'name' => true,
    'referrerpolicy' => true,
    'sandbox' => true,
    'src' => true,
    'srcdoc' => true,
    'title' => true,
    'width' => true,
    'height' => true,
    'allowfullscreen' => true,
    );
    }
    return $allowed_html;
    }, 10, 2 );

    Regards

    Plugin Support andrewshu

    (@andrewshu)

    Hi @driftmaps

    This thread has been inactive for a while so we’re going to go ahead and mark it Resolved.

    Please feel free to re-open this thread if any other questions come up and we’d be happy to help. 🙂

    Regards

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘IFRAME Embed Google calendar’ is closed to new replies.