How to create WordPress child theme


A child theme is a theme that inherits the functionality and styling of another theme, called the parent theme. Child themes are the recommended way of modifying an existing theme.

A child theme consists of at least one directory (the child theme directory) and two files (style.css and functions.php).

Put below code in child theme style.css

/*
Theme Name: Aviweb Child Theme
Theme URI:
Description: This is a child theme for Aviweb
Version: 1.0
Author:
Template: aviweb
*/

@import url(“../aviweb/style.css”);

Create functions.php file within child theme folder and write our own custom code.

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s