kenjpete
asked on
WordPress Child Theme Not Working
I just created a child theme for our self-hosted WordPress blog. The site never used a child theme previously but I want to avoid it being overwritten as updates to the theme come out. The parent theme is twentyeleven.
So I followed the instructions on the WordPress Codex site to create a child theme:
1. Created a folder in my wp-content/themes folder called twentyeleven-child.
2. Added a style.css file to this folder.
3. Added the following css code to the child style.css file:
/*
Theme Name: Twenty Eleven Child
Theme URI: http://mysite.org/twentyeleven-child/
Description: Twenty Eleven Child Theme
Author: My name
Author URI: http://mysite.org/
Template: twentyeleven
*/
/* =Imports styles from the parent theme
-------------------------- ---------- ---------- ---------- ------ */
@import url('../twentyeleven/style .css');
/* =Theme customization starts here
-------------------------- ---------- ---------- ---------- ------ */
4. Returned to WordPress and activated the child theme.
When I activate the child theme it shows the original twentyeleven design (colors, featured image, sidebar, etc.), and not the customized version we have been using as a parent theme for the past two years??
What am I missing? If my customized parent theme based on the twentyeleven theme works, then why doesn't it show the same design theme when set up as a child theme using the style.css file listed above?
So I followed the instructions on the WordPress Codex site to create a child theme:
1. Created a folder in my wp-content/themes folder called twentyeleven-child.
2. Added a style.css file to this folder.
3. Added the following css code to the child style.css file:
/*
Theme Name: Twenty Eleven Child
Theme URI: http://mysite.org/twentyeleven-child/
Description: Twenty Eleven Child Theme
Author: My name
Author URI: http://mysite.org/
Template: twentyeleven
*/
/* =Imports styles from the parent theme
--------------------------
@import url('../twentyeleven/style
/* =Theme customization starts here
--------------------------
4. Returned to WordPress and activated the child theme.
When I activate the child theme it shows the original twentyeleven design (colors, featured image, sidebar, etc.), and not the customized version we have been using as a parent theme for the past two years??
What am I missing? If my customized parent theme based on the twentyeleven theme works, then why doesn't it show the same design theme when set up as a child theme using the style.css file listed above?
ASKER
Ok, can I copy/paste those customized fields in the wp-options table from the parent theme to the child theme? I have access to that database via phpMyAdmin.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You will just need to reset them.