A Begning with wordpress child theme

Why need to develop child theme?

In this article we discuss how create a child theme in wordpress. How to use of child theme in wordpress and  what points are important in create a child theme in wordpress.  If you can perform simple css change in theme design you can design a child theme.  Creating a wordpress  child theme is very easy  and simple.  Child theme allow you to some changes without  affecting the  original theme script. The  child theme is separate   theme depends on their parent theme mostly functionality.  The child theme allow you to changes  on the theme according to your requirement.  In the child theme possible to all content change according to your need.  In the child theme we are change font color,  size  and different action  on the buttons.  If the parent theme is update in newer version  functionality but no effect on the child theme.  Child theme is performing   adjustment  of   your theme.


 Creating a child theme are  following Example.

In this example we create the  child-theme.   Some simple steps are using to create the child-theme in wordpress.
               
1.  Firstly we install the latest wordpress  theme.
2.  Create a new folder like child-theme in "/wp_content/themes/".
3.  Copy following code in new file style.css in child-theme folder.
               
 /*
Theme Name:  Child-Theme
Theme URI: https://domainname.com
Author: Your NAme 
Author URI: https://my-domain-name-here.org/
Description: Creating my child theme
Version: 1.3
*/


In this code fist line starting with Theme Name.  Theme name is very important line in this code.
Theme name specify in wordpress  what is  name of your theme and after some detail of author  name , author url , theme description and theme version. Take a screen shot  of wp-admin/themes.php  Dashboard page in save screenshot.png and save in child-theme folder. 

4.  After the theme detail  import the style code  in  child theme in style.css

      @import url("../parent-theme/style.css");

We can apply  new css style in child theme page style.css . we can change the theme structure using
change the  adjustments in child theme. Activating theme and uploads a  child theme is no different
from parent theme.


5.  Copy all another important files into parent theme in child-theme (such as header.php, footer.php,
Function.php etc.) . Activate my child theme in / wp-admin/themes.php. Activate theme via Appearances > Themes  page in your WordPress  Dashboard. Child-theme activated in dashboard successfully.  After the theme activate you can see the frontend  design  of child-theme  is  same     parent theme design.

 


Students Tech Life