Added template for stylesheet and functions file
This commit is contained in:
parent
102ad5192a
commit
9c57c51be4
14
functions.php
Normal file → Executable file
14
functions.php
Normal file → Executable file
@ -1,7 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
|
// Atticus Finch Child Theme
|
||||||
function theme_enqueue_styles() {
|
|
||||||
wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
|
function child_theme_enqueue_styles() {
|
||||||
|
wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css', '', '1.0' );
|
||||||
|
wp_enqueue_style( 'parent-style-mobile', get_template_directory_uri() . '/styles/mobile.css', 'atticus-finch-style', '1.0', 'screen and (max-width: '. get_theme_mod( 'atticus_finch_mobile_breakpoint' ) . 'px)' );
|
||||||
|
wp_enqueue_style( 'parent-style-print', get_template_directory_uri() . '/styles/print.css', '', '1.0', 'print' );
|
||||||
|
wp_enqueue_style( 'parent-style-menus', get_template_directory_uri() . '/styles/menus.css', '', '1.0', 'screen' );
|
||||||
|
|
||||||
|
}
|
||||||
|
add_action( 'wp_enqueue_scripts', 'child_theme_enqueue_styles' );
|
||||||
|
|
||||||
}
|
|
54
style.css
Normal file → Executable file
54
style.css
Normal file → Executable file
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
Theme Name: Atticus Finch Child
|
Theme Name: Atticus Finch Child
|
||||||
Theme URI: http://example.com/atticus-finch-child/
|
Theme URI: https://github.com/kjodle/atticus-finch-child
|
||||||
Description: Atticus Finch Child Theme
|
Description: Atticus Finch Child Theme
|
||||||
Author: Kenneth John Odle
|
Author: Kenneth John Odle
|
||||||
Author URI: http://techblog.kjodle.net
|
Author URI: http://techblog.kjodle.net
|
||||||
@ -9,4 +9,54 @@
|
|||||||
License: GNU General Public License v2 or later
|
License: GNU General Public License v2 or later
|
||||||
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
Text Domain: atticus-finch-child
|
Text Domain: atticus-finch-child
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user