Git Product home page Git Product logo

Comments (1)

sxua avatar sxua commented on June 12, 2024

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:

// for style.sass // for style.scss

That's all, I think :)

from haml-sass-for-wordpress.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.