Sunday 18 August 2019

Creating a Child Theme WordPress

Create two files
one with the name style.css and second with the name function.php
style.css
/**
* Theme Name:     theme name
* Author:         theme Team
* Template:       theme name
* Text Domain:       theme domain
* Description:    WordPress Theme Based on author name  Framework
*/
function.php
 <?php
add_action( 'wp_enqueue_scripts', 'Theme name _child_style' );
  function Theme name _child_style() {
    wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
    wp_enqueue_style( 'child-style',get_stylesheet_directory_uri() . '/style.css',array('parent-style'));
}