Skip to content

Instantly share code, notes, and snippets.

@sydbarrett74
Created January 8, 2018 23:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sydbarrett74/928eb2104370c230a64af9e3a1144686 to your computer and use it in GitHub Desktop.
Save sydbarrett74/928eb2104370c230a64af9e3a1144686 to your computer and use it in GitHub Desktop.
Blackoot-Lite child theme
<?php
add_action( 'wp_enqueue_scripts', 'enqueue_parent_styles' );
function enqueue_parent_styles() {
wp_enqueue_style( 'parent-style', get_template_directory_uri().'/style.css' );
}
?>
<!-- Begin: function wpb_widgets_init()
added 20180108 by Victor Escobar per instructions at:
http://www.wpbeginner.com/wp-themes/how-to-add-a-wordpress-widget-to-your-website-header/
-->
<?php
function wpb_widgets_init() {
register_sidebar( array(
'name' => 'Custom Header Widget Area',
'id' => 'custom-header-widget',
'before_widget' => '<div class="chw-widget">',
'after_widget' => '</div>',
'before_title' => '<h2 class="chw-title">',
'after_title' => '</h2>',
) );
}
add_action( 'widgets_init', 'wpb_widgets_init' ); ?>
<!-- End: function wpb_widgets_init() -->
/*
Theme Name: Blackoot Lite Child
Theme URI: http://gibsonmoore.net/blackoot-lite-child/
Description: Blackoot Lite Child Theme by Victor Escobar
Author: Victor Escobar
Author URI: http://gibsonmoore.net
Template: blackoot-lite
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: one-column, two-columns, right-sidebar, custom-background, custom-header, custom-menu, footer-widgets, editor-style, featured-images, full-width-template, sticky-post, theme-options, threaded-comments, translation-ready, entertainment, photography, portfolio
Text Domain: big-blue-child
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment