• RezaY

    (@mohammad983)


    Hi
    I think when a user presses the button and sen feedback, All strings – feedback all widget taxes(except text after sending feedback) have to hide.

    I want to use this code

    if ($('js-rmp-feedback-button').length == 0||$('rmp-feedback-widget__text').length > 0) {
        $('div.rmp-feedback-widget__text').hide();
    }

    but it does not work after pressing the button because the page not loaded again. so I think we should add it in plugin.

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

    (@mohammad983)

    I wrote it but it does not work

    add_action( 'rmp_after_feedback', 'blazzdev_after_feedback', 10, 2 );
    function blazzdev_after_feedback( $post_id, $feedback ) {
        wp_register_script( 'dummy-handle-header', '' );
        wp_enqueue_script( 'dummy-handle-header' );
        return wp_add_inline_script( 'dummy-handle-header', '$(\'p.rmp-feedback-widget__text\').hide();');
    }
Viewing 1 replies (of 1 total)

The topic ‘hive Strings – Feedback Widget’ is closed to new replies.