Wordpress Theme: child theme from a parent theme

jdunhin

New member
Joined
Feb 27, 2013
Messages
93
Points
0
Ever wonder hoe to make a child theme from a parent theme? This make theme updating easy. So no more need to worry to mesh up the theme files.


I made a child them from the theme BusyBee.

Step 1:

Create a folder in /wp-content/theme/name for folder

Tip: You can put your own function.php and page.php in this folder. So never have to touch the Parent themes files!

Step 2:

Create a style.css in that folder with this code.

Code:
/*
Theme Name: Name for theme
Theme URI: http://domain.co.za
Description: Short description
Author: Johnny Dunhin
Template: busybee
*/

@import url('../busybee/style.css');
 

hoangvu

New member
Joined
Jun 6, 2012
Messages
1,876
Points
0
Hello Jdunhin,

How to install child theme into wp admin? why don't you duplicate BusyBee theme to new theme, it's easy way to make a new theme instead of child theme from parent theme ?
 

jdunhin

New member
Joined
Feb 27, 2013
Messages
93
Points
0
Hi

You install it like any other theme. You do not need all the files of busybee. You can sill leave the page templates and other js scripts in busybee.

This makes it easier because you start with a clean file and keep it easier to manage. If you want to change a div or class then you can put the change in you child theme and it will overwrite the Parent theme style.css with out deleting or adding on the main theme.

But no harm if you keep a backup in place, only makes the search for changes difficult.
 

hoangvu

New member
Joined
Jun 6, 2012
Messages
1,876
Points
0
Very informative, thanks for your introductions, I got additional knowledge about making child theme from parent theme in wordpress. This is strange to me.
 

jdunhin

New member
Joined
Feb 27, 2013
Messages
93
Points
0
If you need help or more info you are welcome to ask me again.
 
Newer threads
Replies
0
Views
2,036
Replies
5
Views
2,526
Replies
6
Views
11,841
Replies
2
Views
3,158
Recommended threads
Similar threads

Referral contests

Referral link for :

Sponsors

Popular tags

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top