Wordpress Theme: child theme from a parent theme

jdunhin

Active member
Registered
Joined
Feb 27, 2013
Messages
72
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');
 

Marc0

Well-known member
Registered
Joined
Jun 6, 2012
Messages
890
Points
28
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

Active member
Registered
Joined
Feb 27, 2013
Messages
72
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.
 

Marc0

Well-known member
Registered
Joined
Jun 6, 2012
Messages
890
Points
28
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

Active member
Registered
Joined
Feb 27, 2013
Messages
72
Points
0
If you need help or more info you are welcome to ask me again.
 
Newer Threads
Replies
0
Views
2,276
Replies
2
Views
3,128
Replies
9
Views
4,979

Latest Hosting OffersNew Reviews

Sponsors

Tag Cloud

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