updated way to keep css after deleting Microthemer

This topic contains 4 replies, has 2 voices, and was last updated by  robertlo 6 years, 2 months ago.

Author Posts

robertlo

I currently have this in functions.php:

/* Manually add Microthemer stylesheet */

function add_microthemer_css() {

wp_register_style( ‘microthemer’, WP_CONTENT_URL . ‘/micro-themes/active-styles.css’);

wp_enqueue_style(‘microthemer’);

}

add_action(‘wp_enqueue_scripts’, ‘add_microthemer_css’);

Is there an updated way to do this currently, and will this work if MT is completely deleted, or only if it’s deactivated, but still installed?


Sebastian

Hi Robert,

Yes there is new code for including Microthemer’s stylesheet after disabling or completely deleting Microthemer. Go to the Preferences page in Microthemer, and then copy and paste the code displayed on the ‘Inactive’ tab of the preferences.

The latest code also loads any Google fonts stylesheets that may be necessary. And uses the minified stylesheet if you’ve enabled CSS minification on the preferences.

Cheers,
Sebastian


robertlo

OK thanks. Will update that code. And as an extra safety precaution, I was going to export the design pack, but the export button wasn’t doing anything. Any ideas why that Export button isn’t working?


Sebastian

Ah, thanks for pointing that out Robert!

The update I released earlier today introduced a problem with the Export button. I’ve just released version 4.9.5.4 which addresses that.

Cheers!
Sebastian


robertlo

awesome. You’re on it!

You must login or register to reply to this topic.