Comments (1)
First of all, you'll need a ruby and haml/sass gems installed on your server, then you'll must allow PHP to execute shell commands.
HAML version must be >= 3.1!
Then install the plugins into Wordpress.
In the directory of your selected theme create 'haml' directory and put there next files - layout.haml (contains header and footer, you can see example here - https://github.com/sxua/HAML-SASS-for-Wordpress/blob/master/twentyten/layout.haml), index.haml (home page), and others like single.haml, 404.haml etc (filenames must be exactly the same as php files in your theme directory.
By the way, all php files must be in their place (they could be blank, just a dummy for Wordpress).
To use SASS - create any scss/sass file in theme directory and insert this code as css-path:
That's all, I think :)
from haml-sass-for-wordpress.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from haml-sass-for-wordpress.