Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can WP-SCSS be used independent of theme #139

Open
Timoti opened this issue Apr 19, 2020 · 2 comments
Open

Can WP-SCSS be used independent of theme #139

Timoti opened this issue Apr 19, 2020 · 2 comments
Labels

Comments

@Timoti
Copy link

Timoti commented Apr 19, 2020

I'm trying a lo-code approach where i don't set up a subtheme, or fork the active (Kadence) theme. Can this plugin be configured to compile outside of theme and still compile and queue correctly? If so, where is best?

Many thanks!

@Timoti Timoti changed the title Can WP-SCSS be used indepdent of theme Can WP-SCSS be used independent of theme Apr 19, 2020
@richrd
Copy link

richrd commented Apr 19, 2020

I think you can. You can just create the scss and css directories wherever you want (and make them writable). For example if you put them at /wp-content/scss and /wp-content/css your WP-SCSS path settings should be /../../scss/ and /../../css/. Then just enable automatic enqueueing and it should work. WP-SCSS looks for the paths in /wp-content/themes/yourtheme so adding../../ makes it look for them two directories up (in wp-content)

@shadoath
Copy link
Collaborator

shadoath commented Feb 9, 2021

@Timoti Please take a look at the new PR #160 which gives three location for the base dir to be set. You can also use @richrd's comment to work around it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants