LCP Left Sidebar

Child Theme

If you modify a theme’s main code and the theme is updated your changes will be lost. The benefit of creating a child theme is that your code is preserved. A child theme allows to alter the look and functionality of your site.

You will need to create:


The style.css you will create needs to have:

 Theme Name:   A name you choose
 Theme URI:    your url
 Description:  LCP Left Sidebar Child Theme
 Author:       your name
 Author URI:
 Template:     lcp-left-sidebar
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:
 Tags:         Tags: full-width-template, blue, gray, white, left-sidebar, full-width-template, dark, light, fluid-layout 
 Text Domain:  lcp-left-sidebar-child

Template is the only required field that needs to be filled in and in order for your child theme of LCP Left Sidebar the field must read, lcp-left-sidebar as shown above



The functions.php you will create needs to have:

add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
function theme_enqueue_styles() {
    wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );

In your style.css file you created for your child theme you can alter colors, widths, heights, font styles, links colors and styles. You can completely alter how your site looks. For example:

/* Footer */
     color: blue;

/*  This is a comment which does not effect your site. Comments help you maintain organization and easy reference in the future for further editing */

Comments are closed.