Preethi
Preethi

Reputation: 101

Child themes of twentysixteen theme

I am using twenty sixteen child theme. I need to modify the theme contents. What are the files I need to modify and how? Can anyone explain it in detail. Advance thanks.

when i use child theme like this i get black screen

This is my site https://i.sstatic.net/snSX9.png How to extent the full width of my site..

Upvotes: 1

Views: 234

Answers (2)

Pushkar
Pushkar

Reputation: 1

You need to create at-least one child-theme directory and two main files (style.css & functions.php) under child theme directory. I have given example using Twenty-Thirteen WordPress theme. Step by step explanation is given

Upvotes: 0

Naresh Kumar P
Naresh Kumar P

Reputation: 4210

Read the following documentation about the child themes

Child theme inherits all the functionality and styling of it's parent theme. If you are using child theme and a theme update is applied your changes won't be lost or overwitten

You can quickly create child theme for any theme, just follow the steps given below:

1 Create a folder and name it exactly your theme name; append -child in the name. e.g. creating child theme for twentysixteen theme would be called twentysixteen-child this folder should sit beside parent theme under wp-content/themes/

2- Your child theme should have three files. style.css functions.php screenshot.png

3- In functions.php file you can override parent theme functions.

4 In style.css file you can override parent theme CSS code.

5 If you want to change header design then you have to override header.php file. For this copy header.php file of your parent theme and paste it inside your child theme folder. Now, you can modify the child theme header file as per your requirements.

6 Similarly, you can also override footer.php file in your child theme.

For more info have a look over below thread- https://codex.wordpress.org/Child_Themes

Upvotes: 1

Related Questions