2017-01-29 7 views
2

私は使用しているtwentytwelveの子テーマを持っています。エラーのない有効なCSSレベル3であることが確認されています。私は積極的に元がインポートされていても、使用していた子テーマで子テーマCSSが適用されていません

/* Minimum width of 600 pixels. */ 
@media screen and (min-width: 600px) { 
.site { 
    margin: 0 auto; 
    max-width: 960px; 
    max-width: 68.571428571rem; 
    overflow: hidden; 
} 

、私は次のよう

/* Minimum width of 600 pixels. */ 
@media screen and (min-width: 600px) { 
/*BEGIN MY RESET*/ 

/*Site background overall*/ 
.site { 
max-width: 100% !important; 
background-color: #fff; 
} 

を置いしかし前者のみを有効にするにはようで、後者はいないようです私が使っている子供のテーマから応募しています。

誰でも教えてください。

私の子供のテーマCSS:ビューソース:http://stanleyss.com/wp-content/themes/twentytwelvechild/style.css

私の親テーマのCSS:http://stanleyss.com/wp-content/themes/twentytwelve/style.css

答えて

0

は私が子供のスタイルシートを含めると、あなたの混乱を考えて、あなたが使う機能かどうか確認するには、あんた内の子のスタイルシートを含めますfunctions.phpファイル。 あなたが

wp_enqueue_style('your-style-handler', get_template_directory_uri() . '/style.css'); 

を使用した場合、その後

wp_enqueue_style('your-style-handler', get_stylesheet_directory_uri() . '/style.css'); 

get_template_directory_uri()子テーマファイルのインクルードに使用)(親テーマファイルのインクルードとget_stylesheet_directory_uriに使用すると、このコードを変更します。

+0

nahid-ハサンtwentytwelveが更新されました@感謝と手つかずの、のfunctions.php に私は '//は、私たちのメインのスタイルシートをロードしています。 wp_enqueue_style( 'twentytwelve-style'、get_stylesheet_uri()); ' 他のアイデアですか? – l33tcodes

関連する問題