Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter create2thrive

    (@create2thrive)

    Hello,

    Thank you. 2.1.7 has fixed all but one issue we are seeing where a lightbox isn’t working because the content of a script tag isn’t being passed through (we think it should be passed since we set value to true in the php, but perhaps it is a different tag?).

    The expected html source (what we see from 2.0.24 and when it is not inside an FAQ such as this: https://www-dev.patterngenius.com/lightbox-page/):
    <script type=”text/javascript” charset=”utf-8″>
    /* <![CDATA[ */
    jQuery(document).ready(function($){
    $(function(){
    $(“a[rel=wplu_extpagewplu61f0b2c230ffb]”).fancybox({
    type : ‘iframe’,
    padding : 10,
    maxWidth : 640,
    maxHeight : 640,
    width : ‘95%’,
    height : ‘95%’
    });
    });
    });
    /* ]]> */
    </script>

    The html source we get when it is inside an FAQ (https://www-dev.patterngenius.com/ufaqs/lightbox-inside-faq/):
    <script type=”text/javascript” charset=”utf-8″>
    /* */
    </script>

    The functions.php code we are using is:
    add_filter( ‘ewd_ufaq_kses_allowed_html’, ‘allow_faq_content_tags’ );
    function allow_faq_content_tags( $tags ) {
    $tags[‘style’] = array();
    $tags[‘script’] = array(
    ‘type’ => true,
    ‘charset’ => true,
    ‘value’ => true
    );

    return $tags;
    }

Viewing 1 replies (of 1 total)