This is my first attempt at creating a child theme based off the WP twentyeleven theme.
To begin with, I am using MAMP on my mac and have the following directory structure:
applications/MAMP/htdocs/mysite/wp-content/themes/twentyeleven/style.css
/mytwentyeleven/style.css
My URL in my browser appears as: http://localhost:8888/mysite/
My problem/query is, when I activate my theme within WP 3.2 and then go and view it, there is no style been applied at all and the header and footer don't appear either.
Based on my directory structure above, I am thinking my style.css within my mytwentyeleven directory is not importing original parent twentyeleven style.css file.
I think my import path is wrong or perhaps something else. Again, this is my first time at creating a child theme.
Here is my child theme style.css file contents:
/*
Theme Name: MyTwentyEleven Theme
Author: Me
Description: My TwentyEleven Child Theme CSS
Template: twentyeleven
*/
@import url("../twentyeleven/style.css");
Can people please let me know what I have missed as the import url path is not working as from the looks of it, it's not finding the parent twentyeleven style.css file.
Not sure if it's a MAMP thing but I just can't seem to see why it's not working/finding correct path back to parent stylesheet file.
Thanks
@import
question is a CSS question, and not specifically WordPress-related. It might be a WordPress-related question, if you don't have the parent-child relationship working properly. Can you verify that TwentyEleven is installed, and when activated, displays properly?