meringia
Member
Posted 1 year ago #
I am using the twentyten 1.1 theme, but would like to have a black background on the home pages. On the other pages, it would be great if I could just have the top section be black (so the header would blend into it). Is this possible? If so, can someone walk me through how to do it? Thanks in advance!
It's possible but you need to start by creating a child theme otherwise your changes will be over-written the next time you upgrade WordPress.
meringia
Member
Posted 1 year ago #
That makes sense. Is there an easy way to make a child theme? or does it involve a lot of CSS knowlege?
If you check the link I gave above, you'll see that it's actually very easy. You don't need much CSS knowledge at all to put the child theme together and get it working. Once the child's stylesheet has been set up, you can use the CSS @import to pull the parent's CSS into the child. so, for a child of Twenty Ten, you'd have something like:
/*
Theme Name:My Theme
Version: 1.0
Theme URI: [Put your site's url here]
Description: A custom child theme of Twenty Ten
Template: twentyten
*/
@import url(../twentyten/style.css);
From then on, you only need to add the CSS (or template files) that you want to change.