WordPress - 儿童主题不会覆盖父母的CSS

时间:2016-08-25 02:29:17

标签: css wordpress sass

我设置了一个儿童主题。我有一个插件WP-SCSS,我设置目录,当我,我认为,刷新页面,或者它可能在保存,但不知何故SCSS编译为CSS。很好,但问题是css没有覆盖父母的样式。

我使用已购买的主题Unicon。我不确定为什么这会导致我的问题,我不想继续在所有内容上写!important

这是我的style.css文件:

/*
Theme Name: Unicon Child Theme
Description: Unicon Child Theme for your Customizations
Author: minti
Template: unicon
Version: 1.0
*/
@import url("css/main.css");
@import url("../unicon/style.css");

我的functions.php

<?php
function cls_scripts() {
    // wp_enqueue_style( 'cls-css', get_stylesheet_directory_uri() . '/style.css' );

}
add_action( 'wp_enqueue_scripts', 'cls_scripts' );

我不确定它是否是导致这种情况的SCSS插件,最糟糕的情况是我只是不使用SASS并将所有内容写入我的style.css,想法?

0 个答案:

没有答案
相关问题