Viewing 1 replies (of 1 total)
  • In your functions.php page you will want to use this to register your .less file:

    //Register Styles
    	function theme_enqueue_styles() {
    	    wp_enqueue_style('theme-main', get_stylesheet_directory_uri().'/style.less');
    	}
    	if ( ! is_admin() ) {
    	add_action('init', 'theme_enqueue_styles');
    	}

    This way you’re only adding it to the front end and not the admin.

Viewing 1 replies (of 1 total)

The topic ‘My Dashboard style is broken’ is closed to new replies.