• Resolved pressworthammer

    (@pressworthammer)


    Hey guys,

    could it be that MailPoet removes all enqueued Admin scripts and styles? There is an issue with the Newspaper Theme from TagDiv https://forum.tagdiv.com/forum/newspaper/ – some CSS is not loaded and their logo is using up 2 screenspaces only on the MailPoet backend pages.

    Also, my attempts to fix it didn’t work. Does MailPoet remove enqueued styles?

    function wpdocs_enqueue_custom_admin_style() {
    wp_register_style( ‘custom_wp_admin_css’, get_stylesheet_directory_uri() . ‘/css/admin-styles.css’, false, ‘1.0.0’ );
    wp_enqueue_style( ‘custom_wp_admin_css’ );
    }
    add_action( ‘admin_enqueue_scripts’, ‘wpdocs_enqueue_custom_admin_style’ );

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Ojoma a11n

    (@geraltrivia)

    Hello there @pressworthammer ,

    Thank you for reaching out to us.

    We recently received a similar report about the conflict with tagDiv.

    Upon investigating further we found out that the tagDiv Composer Plugin shows a notice on all your WordPress admin Pages (see notice below):

    LjYtUN

    Link to screenshot:?https://d.pr/i/LjYtUN

    This is the same notice that it’s trying to display in the MailPoet plugin page but it’s unable to render correctly as it’s using a syntax that we do not support. I’m afraid there isn’t much we can do about this.

    To fix this, you’d need to deactivate the TagDiv banner.

    I hope this helps.

    Have a great day.

    Thread Starter pressworthammer

    (@pressworthammer)

    That’s right, but the banner is displaying correctly on ALL other admin pages. Furthermore, only on the MailPoet Pages my custom scripts and styles are ignored despite being implemented the WordPress-recommended-way like this:

    add_action( 'admin_enqueue_scripts, wpdocs_enqueue_custom_admin_style‘ …

    I removed the TagDiv banner via toggle in their theme options, so that’s resolved. But I still wonder, why you actively block all other admin scripts/styles.

    Plugin Support Ojoma a11n

    (@geraltrivia)

    Hello again @pressworthammer ,

    Thank you for reaching out to us.

    Thank you for bringing this to our attention. We apologize for any inconvenience this may have caused. It’s not our intention to actively block custom scripts and styles on MailPoet pages. However, in some cases, conflicts may arise between our plugin and other themes or plugins that could cause such issues.

    I’d be marking this as resolved for now but will talk to the devs about this to see if anything can be done.

    Have a great day.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Backend: MailPoet removes all Admin Scripts/Styles?’ is closed to new replies.