amarstyle
Member
Posted 2 months ago #
Hi,
I made heavy customization in the parents theme's style.css, function.php and index.php.
If I update to the latest version I know I will lose everything.
Is it possible to make a child them and copy paste the customization from the parent theme?
If possible can someone please tell me how?
My site is here: amarstyle.com
Thank you.
Mahesh
Member
Posted 2 months ago #
There is an article about child theme in Codex.
In short you have to create a new directory for this child theme with contents like-
style.css
functions.php
home.php (if applies)
and edit the style.css for the child parent relationship.
e.g. something like this.
/*
Theme Name: Twenty Twelve Child
Theme URI: http://example.com/
Description: Child theme for the Twenty Twelve theme
Author: Your name here
Author URI: http://example.com/about/
Template: twentytwelve
Version: 0.1.0
*
amarstyle
Member
Posted 2 months ago #
I created the child theme for catch box like the below:
/*
Theme Name: Catch Box Child
Description: Child theme for the Catch Box theme
Author: Your name here
Author URI: http://example.com/about/
Template: catch-box
Version: 0.1.0
*/
now when i activate the child theme i get an 500 error. i cannot even login to wp-admin.
i had go into the database and change the theme in there back to parent catch-box.