sir1
کاربر عضو
با سلام خدمت دوستان عزیز
بنده برای قالب سایتم پوسته فرزند درست کردم تمام کارا درست انجام دادم فقط در پوسته فرزند تغییرات css که دادم اعمال نمیکنه. لطفا بفرمایید که چه کدی را به فایل stely.css یا fonctions.php قالب فرزند اضاف کنیم که استایل فرزند را بخونه..
کد stely.css
/*
Theme Name: enfold child
Description: enfold child theme
Author: sirvan sheikhi
Template: enfold
(optional values you can add: Theme URI, Author URI, Version, License, License URI, Tags, Text Domain)
*/
کد fonctions.php
<?php
//
// Recommended way to include parent theme styles.
// (Please see http://codex.wordpress.org/Child_Themes#How_to_Create_a_Child_Theme)
//
add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
function theme_enqueue_styles() {
wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
wp_enqueue_style( 'child-style',
get_stylesheet_directory_uri() . '/style.css',
array('parent-style')
);
}
//
// Your code goes below
//
پوشه css در قالب فرزند به ادرس زیر موجود است:
theme-child/css
بنده برای قالب سایتم پوسته فرزند درست کردم تمام کارا درست انجام دادم فقط در پوسته فرزند تغییرات css که دادم اعمال نمیکنه. لطفا بفرمایید که چه کدی را به فایل stely.css یا fonctions.php قالب فرزند اضاف کنیم که استایل فرزند را بخونه..
کد stely.css
/*
Theme Name: enfold child
Description: enfold child theme
Author: sirvan sheikhi
Template: enfold
(optional values you can add: Theme URI, Author URI, Version, License, License URI, Tags, Text Domain)
*/
کد fonctions.php
<?php
//
// Recommended way to include parent theme styles.
// (Please see http://codex.wordpress.org/Child_Themes#How_to_Create_a_Child_Theme)
//
add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
function theme_enqueue_styles() {
wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
wp_enqueue_style( 'child-style',
get_stylesheet_directory_uri() . '/style.css',
array('parent-style')
);
}
//
// Your code goes below
//
پوشه css در قالب فرزند به ادرس زیر موجود است:
theme-child/css