customization - Trying to customise 2011 Child Theme Background Colour

I am trying to customise the background colour of my site. It's a 2011 Child Theme. When I go to Appearance -> C

I am trying to customise the background colour of my site. It's a 2011 Child Theme. When I go to Appearance -> Customize -> Colors, I get the Light and Dark option under Color Scheme, but can't completely customise it. No custom colour option is available except as listed for Header Text / Background and Link colours, where I can use the slider.

I have selected the Dark option but the background isn't truly black, would like to make it darker, been searching and can't find a way to make it work / edit it etc. Tried in the theme editor as well.

Any ideas would be greatly appreciated. Thanx in advance!

I am trying to customise the background colour of my site. It's a 2011 Child Theme. When I go to Appearance -> Customize -> Colors, I get the Light and Dark option under Color Scheme, but can't completely customise it. No custom colour option is available except as listed for Header Text / Background and Link colours, where I can use the slider.

I have selected the Dark option but the background isn't truly black, would like to make it darker, been searching and can't find a way to make it work / edit it etc. Tried in the theme editor as well.

Any ideas would be greatly appreciated. Thanx in advance!

Share Improve this question asked Jul 6, 2020 at 6:12 Anthony MooreAnthony Moore 1 3
  • Can you provide a link and a description of the element you're trying to make darker? – ralphjsmit Commented Jul 6, 2020 at 7:50
  • www.deserthighways Main body section behind text. Although have just been suggested I leave it so that black images posted on it stand out, so have done the sides same to match. – Anthony Moore Commented Jul 6, 2020 at 8:09
  • Also can't seem to change the footer colour to match. I have changed part of the section in the middle widdle, but not the overall footer colour, any ideas please? – Anthony Moore Commented Jul 6, 2020 at 9:36
Add a comment  | 

1 Answer 1

Reset to default 0

Background-color:

body.custom-background {
        background-color: #0f0f0f; /* Color for the two borders */
}

#page {
    background: #0f0f0f; /* Color for the content/body part in the center */
}

#site-generator {
    background: #0f0f0f; /* Color for the footer part in the center */
}

You can also take it together into one snippet that changes the color of all three:

body.custom-background, #page, #site-generator { background: #0f0f0f; }

Your page background is kind of 'split' in two parts. Two borders at the left and right side and the center part.

This situation is the same in the footer. You can change the color of the middle section (like you did), but not the border color. The first part (body.custom-background) is about the border and applies to both the border besides the content and besides the footer. So if everything should be black, applying the above code is enough. You can put it in Customizer > Additional CSS.

I now chose for the color #0f0f0f, because that is the current background color. If you want pitch-black, choose #000000.

Let me know how it does!

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1742279415a4414207.html

相关推荐

  • customization - Trying to customise 2011 Child Theme Background Colour

    I am trying to customise the background colour of my site. It's a 2011 Child Theme. When I go to Appearance -> C

    21小时前
    30

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信