Introduction to WordPress Child Themes
-
Upload
declan-oneill -
Category
Technology
-
view
2.411 -
download
2
description
Transcript of Introduction to WordPress Child Themes
"
Introduction to WordPress Child
Themes Level: Beginner
What is a Child Theme
A WordPress child theme is a theme that inherits the functionality of another theme, called the parent theme, and allows you to modify, or add to, the functionality of that parent theme.
Source: http://codex.wordpress.org/Child_Themes
Why use a Child Theme?
Child themes are the recommended way of making modifications to a theme.
Child Theme File Structure?
WordPress Child Themes are located in /wp-content/themes/ like any other WordPress Theme.
Child Theme File Structure?
They’re activated from the WordPress admin like any other theme.
Child Theme File Structure?
Child Themes always have a style.css file and may often include a functions.php file.
The Child Theme CSS File
style.css is the only file required for a child theme.
The Child Theme CSS File
/* Theme Name: Twenty Ten 1.2 Child Theme URI: http://wordpressannarbor.com/ Description: Child theme for the Twenty Ten by WordPress Author: Declan O'Neill Author URI: http://wordpressannarbor.com/ Template: twentyten Version: 1.0 */
The Child Theme CSS File
Theme Name: Twenty Ten 1.2 Child Theme
[Required]
The Child Theme CSS File
Theme URI: Webpage
[Optional]
The Child Theme CSS File
Description: Child theme for the Twenty Ten by WordPress
[Optional]
The Child Theme CSS File
Author URI: Author Webpage.
[Optional]
The Child Theme CSS File
Author: Author name.
[Optional]
The Child Theme CSS File
Template: Directory name of parent theme. Case-sensitive.
[Required]
Thank You!
Questions?
Declan O’Neill / www.cake.ie