Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //* Enqueue Google fonts
- add_action( 'wp_enqueue_scripts', 'sp_load_google_fonts' );
- function sp_load_google_fonts() {
- wp_enqueue_style( 'google-fonts', '//fonts.googleapis.com/css?family=Open+Sans|Playball', array(), CHILD_THEME_VERSION );
- }
- genesis_register_sidebar( array(
- 'id' => 'home-featured',
- 'name' => 'Home Featured',
- 'description' => 'This is the home featured section'
- ) );
- genesis_register_sidebar( array(
- 'id' => 'home-welcome',
- 'name' => 'Home Welcome',
- 'description' => 'This is the home welcome section'
- ) );
- add_action( 'genesis_after_header', 'sk_home_featured' );
- function sk_home_featured() {
- if ( ! is_front_page() ) {
- return;
- }
- echo '<div class="home-featured"><div class="wrap">';
- genesis_widget_area( 'home-featured', array(
- 'before' => '<div class="widget-area">',
- 'after' => '</div>',
- ) );
- echo '</div></div>';
- }
- add_action( 'genesis_after_header', 'sk_welcome' );
- function sk_welcome() {
- if ( ! is_front_page() ) {
- return;
- }
- genesis_widget_area( 'home-welcome', array(
- 'before' => '<div class="welcome widget-area"><div class="wrap">',
- 'after' => '</div></div>',
- ) );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement