Child Themes .
child theme - / /
Child Theme
Ȕ .
.
:
.
ɡ .
.
style.css .
TwentyFourteen :
twentyfourteen-child.
css style.css
Theme Name Template
style.css :
1
2
3
4
5
6
7
8
9
10
11/*
Theme Name: Twenty Fourteen Child
Theme URI: http://example.com/twenty-fourteen-child/
Description: Twenty Fourteen Child Theme
Author: Aboelabbas
Author URI: http://example.com
Template: twentyfourteen
Version: 1.0.0
Tags: light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
Text Domain: twenty-fourteen-child
*/
css Theme Name ϡ Template -.
.
: screenshot.png.
.
css
css css style.css ϡ style.css .
css Twenty Fourteen css :
1 @import url("../twentyfourteen/style.css");
.. ϡ .
ɡ css rtl.css rtl.css :
1 @import url("../twentyfourteen/rtl.css");
css .
:
: functions.php 픺
header.php .
: ȓ category-1.php 1 ݡ .
functions.php
functions.php functions.php functions.php .
arwp_headMeta functions.php :
1
2
3
4
5
6
7
8<?php
function arwp_headMeta() {
echo '<meta name="description" content="">';
}
add_action( 'wp_head', 'arwp_headMeta' );
functions.php .
:
pluggable ǡ :
1
2
3
4
5
6
7
8
9if ( ! function_exists( 'arwp_pluggable' ) ) {
function arwp_pluggable() {
//Functioning
}
}
ǡ .
hooks
hooks post-formats ɡ 10 hook .
Post Formats:
add_theme_support :
1
2
3
4
5
6function arwp_resetFormats() {
add_theme_support( 'post-formats', array( 'aside' ) );
}
add_action( 'after_setup_theme', 'arwp_resetFormats', 11 );
after_setup_theme 11 10 .
add_theme_support aside .
style.css :
get_template_directory()
get_stylesheet_directory() .
myfile.php :
1 include get_stylesheet_directory() . '/myfile.php';
Theme Framework :
ϔ
ȡ functions.php .
Hybrid Core.
. .
ڡ Momtaz framework .




Digg
del.icio.us
StumbleUpon
Google
