admin管理员组文章数量:1335694
It's my understanding that Wordpress now processes SASS files but for some reason mine don't work.
I'm trying to call it using wp_enqueue_style
directly in header.php
via the head
tag:
<?php wp_enqueue_style('stylesheet', get_template_directory_uri() . '/style.css', $ver = false, $media = 'screen') ?>
Instead, the file gets called as a normal CSS doc.
I attempted to rename style.css
to style.scss
but then the file doesn't load at all, so I guess the sass pre-processor just isn't firing.
It's my understanding that Wordpress now processes SASS files but for some reason mine don't work.
I'm trying to call it using wp_enqueue_style
directly in header.php
via the head
tag:
<?php wp_enqueue_style('stylesheet', get_template_directory_uri() . '/style.css', $ver = false, $media = 'screen') ?>
Instead, the file gets called as a normal CSS doc.
I attempted to rename style.css
to style.scss
but then the file doesn't load at all, so I guess the sass pre-processor just isn't firing.
1 Answer
Reset to default 2@nipponese is right. WordPress doesn't process Sass for themes. That was just for core files on wordpress.
本文标签: cssWhy isn39t my theme processing SASS
版权声明:本文标题:css - Why isn't my theme processing SASS? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742389796a2465759.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
wp_enqueue_scripts
hook, too. Check the User Contributed Notes » Using a Hook section on this page. – Pat J Commented Jun 9, 2016 at 1:28