Giter Site home page Giter Site logo

Use it in theme? about wp-scss HOT 3 CLOSED

connectthink avatar connectthink commented on July 29, 2024
Use it in theme?

from wp-scss.

Comments (3)

garretthyder avatar garretthyder commented on July 29, 2024 1

Hi @dmbostan

I recently built a theme using ACF for theme options which upon save re-renders scss via leafo's scssphp found here;
https://github.com/leafo/scssphp
*This is the same library that the WP-SCSS plugin utilizes.

I just set-up a gist so you can see;
https://gist.github.com/garrett-eclipse/cb1f74cf5368c09ce5bc25f83fb9b667

I place the file in my theme and just include via functions.php.

Note the filters are all using acf/save_post from Advanced Custom Fields plugin.

Hope that helps,
Cheers

from wp-scss.

wpexplorer avatar wpexplorer commented on July 29, 2024

You could dump the plugin into the theme, but there isn't any point or benefit in doing so. Your finished theme should already be compiled for the end user ;)

from wp-scss.

dmbostan avatar dmbostan commented on July 29, 2024

@garrett-eclipse thank you!

from wp-scss.

Related Issues (20)

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.