Support » Plugin: MailPoet - emails and newsletters in WordPress » WP admin dashboard colored icons above MailPoet become huge

  • Resolved therealshadowhunter

    (@therealshadowhunter)


    Hello,

    I’m not sure if this is a MailPoet, Modern Events Calender or WordPress issue but it started when installing MailPoet so I’m trying my luck here.

    Section of the dahsboard:


    M.E. Calendar (color icon)
    TotalPoll
    Bookings (color icon)
    MailPoet

    When selecting MailPoet both colored icons “M.E. Calendar” and “Bookings” become huge. When selecting another plugin the icons restor to normal.

    mailpoet-selected mailpoet-not-selected

    It is just cosmetic but I never have seen this kind of behaviour before and being a bit a control freak it bothers me from esthetical point of view.

    Thank you for your feedback.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter therealshadowhunter

    (@therealshadowhunter)

    After some more testing, it is clear, the issue is caused by MailPoet as another colored icon above MailPoet and above M.E. Calendar also changes in size when MailPoet is selected.

    It does not seem to affect the colored icons below MailPoet.

    Thank you for having a look at it.

    Thread Starter therealshadowhunter

    (@therealshadowhunter)

    Oh, boy. I hope I’m not the only one experiencing this with SVG-icons? I suppose I’ll have to create a bug report with WordPress themselves.

    Thread Starter therealshadowhunter

    (@therealshadowhunter)

    For who’s interested I created following ticket: https://core.trac.wordpress.org/ticket/52344

    Plugin Support Bruna

    (@bruberries)

    Hi @therealshadowhunter,

    That’s MailPoet no-conflict system preventing other scripts and styles from breaking our admin pages.

    We have two filters that can be used to whitelist scripts and styles, but you’ll need to find out the domain of your theme or plugin to allow them to work on MailPoet admin pages:

    For styles:

    add_filter(‘mailpoet_conflict_resolver_whitelist_style’, function ($whitelistedStyles) { $whitelistedStyles[] = ‘modern-events-calendar-lite’; // plugin name to whitelist return $whitelistedStyles; });

    For scripts:

    add_filter(‘mailpoet_conflict_resolver_whitelist_script’, function ($whitelistedScripts) { $whitelistedScripts[] = ‘modern-events-calendar-lite’; // plugin name to whitelist return $whitelistedScripts; });

    You should replace modern-events-calendar-lite with the name of the other plugins that are conflicting.

    Thanks!

    • This reply was modified 12 months ago by Bruna.
    Thread Starter therealshadowhunter

    (@therealshadowhunter)

    Hello Bruna,

    Thank you so much for replying and for shedding light on this issue.

    The provided filters indeed did the trick and solved my issue 🙂

    It was sufficient to whitelist “Modern Events Calendar” for styles only, script whitelisting was not necessary in this case.

    Even though it was just cosmetic I’m super pleased it is fixed. I will cancel my WordPress bug report.

    Again a HUGE thank you for your kind support.

    With best regards,

    ShadowHunter

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘WP admin dashboard colored icons above MailPoet become huge’ is closed to new replies.