Final version of child theme

This commit is contained in:
kjodle 2017-05-29 12:26:36 -04:00
parent c297b17e50
commit 5cc1ef6701
5 changed files with 36 additions and 75 deletions

View File

@ -2,13 +2,34 @@
// Exit if accessed directly
if ( !defined( 'ABSPATH' ) ) exit;
/* Do NOT remove the below function or you child theme will not load properly */
if ( !function_exists( 'af_childtheme_parent_css' ) ):
function af_childtheme_parent_css() {
wp_enqueue_style( 'af_childtheme_parent', trailingslashit( get_template_directory_uri() ) . 'style.css', array( ) );
}
endif;
add_action( 'wp_enqueue_scripts', 'af_childtheme_parent_css', 10 );
/* Add a Google Webfont by uncommenting the following functions and changing the 'family' attribute below. */
/*
function af_childtheme_add_google_fonts() {
wp_enqueue_style( 'af-google-fonts', 'http://fonts.googleapis.com/css?family=Asul', false );
}
add_action( 'wp_enqueue_scripts', 'af_childtheme_add_google_fonts' );
*/
/* Let's load our child theme. */
function atticus_finch_enqueue_styles() {
/* Enqueue the parent theme script. Do NOT remove the below function or you child theme will not load properly */
wp_enqueue_style( 'atticus-finch-style', get_template_directory_uri() . '/style.css' );
/* Now we will load the child theme's style sheet: */
wp_enqueue_style( 'atticus-finch-child-style', get_stylesheet_directory_uri() . '/style.css', 'atticus-finch-style', wp_get_theme() -> get( 'Version' ) );
/* If you need to make changes to the child theme's mobile styles, uncomment the following line and edit the child theme's '/styles/mobile.css' file. */
// wp_enqueue_style( 'atticus-finch-child-mobile-style', get_stylesheet_directory_uri() . '/styles/mobile.css', 'atticus-finch-mobile', wp_get_theme() -> get( 'Version' ), 'screen and (max-width: '. get_theme_mod( 'atticus_finch_mobile_breakpoint' ) . 'px)' );
/* If you need to make changes to the child theme's menu styles, uncomment the following line and edit the child theme's '/styles/menu.css' file. */
// wp_enqueue_style( 'atticus-finch-child-menu-style', get_stylesheet_directory_uri() . '/styles/menus.css', 'atticus-finch-mobile', wp_get_theme() -> get( 'Version' ) );
/* If you need to make changes to the child theme's print styles, uncomment the following line and edit the child theme's '/styles/print.css' file. */
// wp_enqueue_style( 'atticus-finch-child-print-style', get_stylesheet_directory_uri() . '/styles/print.css', 'atticus-finch-mobile', wp_get_theme() -> get( 'Version' ), 'print' );
}
add_action( 'wp_enqueue_scripts', 'atticus_finch_enqueue_styles' );
/* Add your child theme's functions below */

View File

@ -3,74 +3,11 @@ Theme Name: Atticus Finch Child
Theme URI: http://wiki.kjodle.net/Category:Atticus_Finch_Theme
Template: atticus-finch
Author: kjodle
Author URI: http://techblog.kjodle.net/
Description: Use this Atticus Finch child theme to easily configure your own version of this theme.
Version: 1.1
Updated: 2017-05-27 15:45:54
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: atticus-finch-child
Author URI: http://d12webdesign.com/
Description: Description
Tags: two-columns,left-sidebar,custom-menu,featured-images,post-formats,theme-options,threaded-comments,translation-ready
Version: 1.0
Updated: 2017-05-29
*/
/*
This child theme stylesheet already has many theme elements included. All you
need to do is to uncomment those items you need to change. Feel free to
delete anything you are not using.
*/
/*
Google Webfonts
If you want to add a webfont, simply use the '@import' as in the example below:
*/
/*
@import url(https://fonts.googleapis.com/css?family=Roboto:400,500,400italic,300italic,500italic,700,700italic);
*/
/* Site title and site description */
/*
#site-title {
font-family: ;
}
#site-desc {
font-family: ;
}
#site-title h1,
#site-title h2, {
color: ;
}
#site-title a {
color: '
}
*/
/* Post titles */
/*
.post-title {
font-size: 24px;
font-family: "", serif;
margin: 0;
}
*/
/* Headers */
/*
h1,
h2,
h3,
h4,
h5,
h6 {
}
*/

1
styles/menus.css Executable file
View File

@ -0,0 +1 @@
/* Use this stylesheet to override menu styles in Atticus Finch or to create new ones. */

1
styles/mobile.css Executable file
View File

@ -0,0 +1 @@
/* Use this stylesheet to override mobile styles in Atticus Finch or to create new ones. */

1
styles/print.css Executable file
View File

@ -0,0 +1 @@
/* Use this stylesheet to override print styles in Atticus Finch or to create new ones. */