Easy Blogging – how to add custom css?

I use Easy Blogging for a customer’s admin area, but have added a new metabox/dashboard widget (GREAT new feature, by the way) that needs to have additional css, a list of member’s own custom posts with thumbnails.

Tried adding css to admin header, which works when in standard more, but the Easy Blogger seems to overwrite or remove the styles when in Easy mode.

Is there a way to add custom styles directly to an Easy Blogger theme in a way that won’t get overwritten with the plugin update?

Thanks!

  • Arun Basil Lal
    • New Recruit

    Hello lovings,

    Welcome to the Forum!

    Easy Blogging Themes are stored in the wp-contentpluginseasybloggingthemes folder, you can add it to the style.css of the active Easy Blogging theme and that should be it :slight_smile:

    But here is what I would suggest.

    Add the css to its on stylesheet and place it in the themes folder and lets call it custom_admin.css. So now wp-content/themes/custom_admin.css has all your style definitions.

    Then add the attached plugin to your wp-contentmu-plugins folder (if it doesn’t exist, create it). Mu means Must Use plugins and are activated all the time.

    It contains the following function:

    // add admin css
    add_action( 'admin_print_styles', 'load_custom_admin_css' );
    function load_custom_admin_css()
    {
    wp_enqueue_style('my_style', WP_CONTENT_URL . '/themes/custom_admin.css');
    }
    //end admin css

    as you can see, the custom css filename should be custom_admin.css for this to work :slight_smile:

    Let me know how that goes. Good luck!