Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

SASS Files in Wordpress

Posted on 2016-09-21
1
Medium Priority
?
149 Views
Last Modified: 2016-09-21
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.
0
Comment
Question by:Grant Whiting
1 Comment
 

Accepted Solution

by:
Grant Whiting earned 0 total points
ID: 41809260
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

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
It’s a season to be thankful, and we’re thankful for users like you who engage on site, solve technology problems, and network with others in the industry. What tech are we most thankful for? Keep reading.
The purpose of this video is to demonstrate how to update a WordPress Site’s version. WordPress releases new versions of its software frequently and it is important to update frequently in order to keep your site secure, and to get new WordPress…
The viewer will learn how to dynamically set the form action using jQuery.
Suggested Courses

927 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question