• Resolved fburatti

    (@fburatti)


    As already mentioned in this topic, Mailpoet 3 causes a javascript error in wordpress themes that include jquery in the footer.

    You should edit the Widget.php file (located in lib / config) to declare script dependencies (jQuery in this case).

    line 105 should be as follows:

     wp_enqueue_script(
          'mailpoet_public',
          Env::$assets_url . '/js/' . $this->renderer->getJsAsset('public.js'),
          array('jquery'), // add dependencies
          Env::$version,
          true
        );
  • The topic ‘Enqueuing script Mailpoet 3 fix’ is closed to new replies.