Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
It’ll probably be in style.css – just search for
28px !important
that code is from the adminbar – which is only visible for you when you are logged in;
the gap is from the top margin in the style of #page
more important:
do not edit Twenty Eleven directly, but create a child theme first, to work with; http://codex.wordpress.org/Child_Themes
Such a dummy I am… I just changed the header just fine… adding a height and changing the margins on the titles… duh! Sometimes looking at tons of code can get to the eyes…
Now to look for the post comment box colors.
A child theme? Oops… been working on the style.css directly. Now what do I do? Will it be difficult to go backwards at this point? Eek!
Onto more learning then, alchymyth, thanks for the link!
Ok, so now I have created a file in the twentyeleven file called twentyeleven-child. It has the style.css in it that I have been working on.
How do I implement it though? There isn’t anywhere in the admin to choose that file. What am I missing?
Thanks!
Tamra
Aww…now it says I need a template… yet the info says it’s optional… hmmm.
/*
Theme Name: Twenty Eleven Child
Theme URI: http://wordpress.org/extend/themes/twentyeleven/twentyeleven-child
Description: Child theme for the Twenty Eleven theme
Author: 1centwiz
Author URI:
Template: twentyeleven
Version: 8.1.12
*/
@import url(“../twentyeleven/rtl.css”);
This is what I have at the top of my style.css in the new folder… so what are they wanting me to do?
This is the error message I get:
Broken Themes
The following themes are installed but incomplete. Themes must have a stylesheet and a template.
Name Description
Twenty Eleven/twentyeleven-child Template is missing.
Anyone have help for me? Thanks!
I have created a file in the twentyeleven file called twentyeleven-child.
??
the folder /twentyelevenchild/ has to be in the /themes folder:
/wp-content/themes/twentyelevenchild
unless you need rtl support, you would just import the normal style.css:
@import url("../twentyeleven/style.css");
rtl.css needs to be linked additionally to style.css
ok, so now I have the new one activated, had to change the location to the themes folder, not twentyeleven.
However, I’ve lost things along the way… hmmm this is getting frustrating!
I’ve lost my widgets, my menu, my pictures for the header, etc.
UGH…
What do I have to import into the css so that I get all those back and working as well?
Do I need to put the child theme folder directly into the twentyeleven theme folder or keep it in the themes?
Thanks!
Since I made changes directly to the css in the main twentyeleven folder, I just copied and pasted it as the new css in the new folder.
SO I have the entire css in there and don’t need to import that from the original, or do I?
I figure the original will be updated at some point and return to normal, but mine will still be used right?
So how about all the customizations that aren’t there now?
Taking a deep breath!
I went back and reactivated the twenty eleven theme that I have been working on directly and it’s all back again.
What am I missing here? All I want to do is keep my settings for the colors, backgrounds etc.
I’ve re-read the child themes page and it doesn’t say anything about having to redo the menu’s and widgets when using the new css.
I guess I’ll just have to keep a copy of it saved for an update and just reinstall it?
Going back to the original, there are no includes in the style sheet that indicate the template.
The Child theme page says that it will still continue to pull from the parent theme folder, but it doesn’t look like it does.
SO do I have to copy all of the info in the original file into the child theme folder for it to work properly?
No you don’t.
This is the line that includes the style. Put it back in your style.css for the child theme 🙂
@import url("../twentyeleven/style.css");
I’ve lost my widgets, my menu, my pictures for the header, etc.
unfortunately, using a child theme is like using a different theme – you need to recreate all these things – re-arrange widgets, re-customize header and background (you can use the existing uploaded images from the media folder), re-customize the menu, etc…