MailPoet Enqueue Scripts Error

Posted in: Newspaper
Post count: 14

Hi TagDiv,

We have an issue with Mailpoet being unable to save changes to templates. We have turned on de-bugging in Mailpoet which suggests a Third Party issue with WP Booster and we have followed this up in the forums where it’s suggested that we add the following code to our functions.php file, to prevent enqueuing on Mailpoet pages.

Could you advise us on what to put, where it says: // Put your enqueue styles and scripts here

<?php
/**
* If your theme or plugin is inserting files in MailPoet pages
* and it is breaking some functions, you should apply this
* conditional to load your files.
*
* Normally themes use these functions wp_enqueue_style() and wp_enqueue_script()
*/
if ( ( isset($_GET[‘page’]) && $_GET[‘page’] != ‘wysija_campaigns’ ) && ( isset($_GET[‘page’]) && $_GET[‘page’] != ‘wysija_subscribers’ ) && ( isset($_GET[‘page’]) && $_GET[‘page’] != ‘wysija_statistics’ ) && ( isset($_GET[‘page’]) && $_GET[‘page’] != ‘wysija_config’ ) ) {
// Put your enqueue styles and scripts here
}

Many Thanks

Post count: 20688

Hi,

I am sorry but unfortunately I could not say what it is needed in this situation. We have not tested this plugin, and we do not know what the problems or conflicts are. Or what exactly would happen if you were to successfully implement the code.
Maybe you could research the issue further, there might be more information available on the plugins support forum for similar situations.

Thanks

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newspaper’ is closed to new topics and replies.