Skip to content

Commit

Permalink
Allow redeclaring functions in child themes.
Browse files Browse the repository at this point in the history
  • Loading branch information
benleivian committed Jul 22, 2015
1 parent ef45cff commit 8990832
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
* @package Forward
*/


if ( ! function_exists( 'google_fonts' ) ) :
/**
* Adds google font support.
*
*/
function google_fonts() {
$query_args = array(
'family' => 'Source+Sans+Pro:200,300,400,600',
Expand All @@ -16,6 +22,7 @@ function google_fonts() {

wp_enqueue_style('source-sans');
}
endif; // google_fonts
add_action('wp_enqueue_scripts', 'google_fonts');

/**
Expand All @@ -25,6 +32,7 @@ function google_fonts() {
$content_width = 640; /* pixels */
}


if ( ! function_exists( 'forward_setup' ) ) :
/**
* Sets up theme defaults and registers support for various WordPress features.
Expand Down Expand Up @@ -91,6 +99,8 @@ function forward_setup() {
endif; // forward_setup
add_action( 'after_setup_theme', 'forward_setup' );


if ( ! function_exists( 'forward_widgets_init' ) ) :
/**
* Register widget area.
*
Expand All @@ -107,8 +117,10 @@ function forward_widgets_init() {
'after_title' => '</h1>',
) );
}
endif; // forward_widgets_init
add_action( 'widgets_init', 'forward_widgets_init' );

if ( ! function_exists( 'forward_scripts' ) ) :
/**
* Enqueue scripts and styles.
*/
Expand Down Expand Up @@ -142,8 +154,10 @@ function forward_scripts() {
wp_enqueue_script( 'comment-reply' );
}
}
endif; // forward_scripts
add_action( 'wp_enqueue_scripts', 'forward_scripts' );


/**
* Implement the Custom Header feature.
*/
Expand Down

0 comments on commit 8990832

Please sign in to comment.