SASS Files in Wordpress

Is there a way to access SCSS files from the Wordpress Theme editor UI? I have tried moving it to the root, next to my style.css and also leaving it in the SASS folder.

I am building a custom theme and already had SASS running on it locally and am now going to continue development in Wordpress.
Grant WhitingFront End DeveloperAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
Grant WhitingConnect With a Mentor Front End DeveloperAuthor Commented:
Got the answer:

I needed to edit my functions.php and add the wp_theme_editor_filetypes filter.

Example:

// edit other file types
add_filter('wp_theme_editor_filetypes', function ($types) {
    $types = array('scss');

    return $types;
});

Open in new window

0
All Courses

From novice to tech pro — start learning today.