Skip to content

Commit

Permalink
Add documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
theukedge committed May 20, 2016
1 parent 8f53a49 commit 42da403
Showing 1 changed file with 31 additions and 3 deletions.
34 changes: 31 additions & 3 deletions functions.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,29 @@
<?php
/**
* Child Theme Template
*
* This child theme template is the very least you need to start building a child theme.
* Simply upload this theme to your site and edit the 'template' in style.css to the
* folder name of the parent theme. Then activate this theme. More details on how to
* use this theme can be found @link https://dave.pe/2014wctpa.
*
* @package Child Theme Template
* @subpackage Functions
* @author Dave Clements <[email protected]>
* @copyright Copyright (c) 2016 Dave Clements
* @version 1.2
* @since 1.0
* @link https://github.com/theukedge/child-theme-template
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
*/

// For more information on how to use this template, go to https://www.doitwithwp.com/putting-things-where-they-belong/

/**
* Load parent theme css
*
* @since 2016-05-20
* @author Dave Clements <[email protected]>
* @return void
*/
function load_parent_theme_css() {
$parentcss = get_template_directory() . '/style.css';
wp_enqueue_style(
Expand All @@ -14,7 +36,13 @@ function load_parent_theme_css() {

add_action( 'wp_enqueue_scripts', 'load_parent_theme_css', 11 );


/**
* Load child theme css
*
* @since 2016-05-20
* @author Dave Clements <[email protected]>
* @return void
*/
function load_child_theme_css() {
$childcss = get_stylesheet_directory() . '/css/style.css';
wp_enqueue_style(
Expand Down

0 comments on commit 42da403

Please sign in to comment.