Solved

SASS Files in Wordpress

Posted on 2016-09-21
1
38 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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
The purpose of this video is to demonstrate how to integrate Mailchimp with WordPress, by placing a Mailchimp signup form on a WordPress Page or Post. This will be demonstrated using a Windows 8 PC. Mailchimp will be used. Log into your Mailchi…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

760 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now