How to Create a Child Theme in WordPress

Technology Wordpress

A child theme required Parent theme and at least two files i.e function.php and style.css

  • Copy the parent theme folder and pest in the theme folder.
  • Rename it and add “-child” at the last. e.g  parent theme is akashwagh then child theme will be akashwagh-child.
  • Create function.php file and add below code.

  • Create style.css file. Suppose you want to create child theme for  “twentysixteen” theme then add below code in the style.css

  • Save all the files. Go to wp-admin and then theme section. You will get a “twentysixteen child”.  Activate it. It will work.