• Hi,

    my back-office is CSS broken because MailJet plugin for WordPress is loading external jQuery UI CSS in the admin. You should enqueue_style and enqueue_script in a better way to prevent this kind of bugs. 🙂

    public function enqueue_scripts()
        {
            wp_enqueue_script('jquery-ui');
            wp_enqueue_script('jquery-ui-accordion');
            wp_enqueue_script('jquery-ui-tooltip');
            wp_enqueue_style('jquery-ui', '//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css');
            wp_enqueue_style('mailjet_css', plugins_url('/assets/mailjet.css', __FILE__));
            wp_register_script('mailjet_js', plugins_url('/assets/js/mailjet.js', __FILE__), array('jquery'));
            wp_enqueue_script('mailjet_js');
            $this->addMjJsGlobalVar();
        }

    This piece of code shouldn’t load in every section of WP admin !

    https://wordpress.org/plugins/mailjet-for-wordpress/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi,

    I have the same problem. Is it possible to fix this problem quickly ?

    Thanks…

    Plugin Author Mailjet

    (@mailjet)

    Hello,

    We investigated the issue, but we include a standard jQuery UI CSS – wp_enqueue_style(‘jquery-ui’, ‘//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css’);

    Could you please check on your end if there’re any indications why your code is conflicting with this jQuery UI CSS? We didn’t manage to reproduce it on our testing environment.

    Could you please provide us with more details, on what page is broken (pls provide us with print screen), what error message do you get?

    We remain at your disposal,

    Thanks,

    Mailjet team

    Thread Starter Aurélien Denis

    (@maigret)

    Hi,

    here is a screenshot showing a conflict with the plugin Breadcrumb NavXT: http://www.tiikoni.com/tis/view/?id=81d014d

    The problem is that this line is loading in all part of the WP admin:

    <link rel='stylesheet' id='jquery-ui-css' href='//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css?ver=4.3.1' type='text/css' media='all' />

    Thread Starter Aurélien Denis

    (@maigret)

    Hi,

    here is a screenshot showing a conflit with Breadcrumb NavXT:
    http://www.tiikoni.com/tis/view/?id=81d014d

    The problem is related to the fact that this CSS is loading in all part of WP admin :

    href=’//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css?ver=4.3.1′ type=’text/css’ media=’all’ />

    Plugin Author Mailjet

    (@mailjet)

    Hello,
    Could you please install our latest version 4.1.0 we have made some CSS improvements.

    Thanks,

    Mailjet team

    Thread Starter Aurélien Denis

    (@maigret)

    Hey it seems to solved the bug!

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Breaks admin CSS’ is closed to new replies.