Skip to main content

Disable CSS and JS Minification

Salient loads minified CSS and JavaScript by default (since version 14). If you override any of those files from a child theme, load the readable source files instead so the overrides can be traced in the browser tools. One filter in your child theme functions.php does it:

add_filter('nectar_dev_mode', 'salient_child_dev_mode');

function salient_child_dev_mode() {
return true;
}

With the above set to true, all CSS and JS files will load from the relevant src directories rather than the build directories.