• ljalgaze

    (@ljalgaze)


    Nothing was happening if I clicked on the -More- text below an embedded question. After enqueuing the dwqa-embed-question.js file after the style sheet by adding

    wp_enqueue_script( ‘dw-embed-question’, $this->uri . ‘assets/js/dwqa-embed-question.js’, array(‘jquery’));

    after line 181 in dwqa-embed-question.php
    and then updating line 6 in dwqa-embed-question.js to be

    jQuery(document).on(‘click’,’.dwqa-question-stand-alone .show-more-end,.dwqa-question-stand-alone .dwqa-read-more’, function(event) {

    things started working as expected.

    Hopefully the change can be made to the next version so I don’t have to continually re-apply this change after every update.

    Thanks,
    Louis

The topic ‘More not working in question shortcode’ is closed to new replies.