user3818576
user3818576

Reputation: 3401

How to run sass in wordpress?

I have theme and I add sass and gulp in my theme. here are the list of file I have. enter image description here

I would like to ask How can I run sass in my theme? I try to google it, but no right explanation how they did it. I found this also link, but no clear explanation. Please help me. I want to learn more about sass. If you have tutorial. please give me link. sorry i didn't mention the OS I used. I used windows.

Upvotes: 0

Views: 3522

Answers (3)

Mark Handy
Mark Handy

Reputation: 1256

Also, look at setting up a child theme, then you can keep all your code isolated.

Upvotes: 0

AddWeb Solution Pvt Ltd
AddWeb Solution Pvt Ltd

Reputation: 21681

Please follow steps mentioned here

Hope this helps you.

Upvotes: 1

3rdthemagical
3rdthemagical

Reputation: 5350

You have assets folder. All source files including .scss files must be there. Then add gulp task to compile scss. It will take files from assets folder and put them to dest folder (dest folder is for compiled resources). Then add link to compiled .css file from dest to wp header.

Tutorial.

Upvotes: 1

Related Questions