• Mailpoet plugin’s admin panel settings does not use the admin.css and custom-editor-style.css admin css styles which I have set for my wp-admin backend. Clicking on any other admin or plugin’s settings loads the admin.css and custom-editor-style.css just fine.

    I am loading them via the below code in the child theme’s functions.php:

    function admin_style() {
      wp_enqueue_style('admin-styles', get_stylesheet_directory_uri().'/admin.css');
    }
    add_action('admin_enqueue_scripts', 'admin_style');
    
    add_editor_style('custom-editor-style.css');

    Please fix this. Thanks.

Viewing 1 replies (of 1 total)
  • Hello @nitaaikumar,

    Yes, we prevent that filter from working to avoid JavaScript and CSS conflicts with our interface.

    Can you try adding the following code to your theme’s functions.php:

    add_filter('mailpoet_conflict_resolver_whitelist_script', function ($scripts) {
      $scripts[] = 'admin-styles'; // plugin name to whitelist
      return $scripts;
    });

    Let us know if that fixes the problem.

Viewing 1 replies (of 1 total)
  • The topic ‘Bug: Mailpoet does not load admin.css and custom-editor-style.css’ is closed to new replies.