Set a sidebar title's background

Hello,

I’d like to set a sidebar title’s background color? Is it possible?

Thanks

Hello Arina,

I will be glad to help you, but can you please provide some explanatory screenshots? You can use snag.gy service and include link into your post.

Also please include a link to your website to let me inspect it.

Kind Regards, Roman.

Hello Roman,

Thank you for your reply.


I want set background color for red marked sidebar title.

my web site url is http://jivjiv.mn/мэдээний-төрөл-2/

Thank you in advance

Hello Arina,

Please try to use the following CSS code to change background color and center the text.

You can add CSS code to your site with Simple Custom CSS plugin (just copy CSS code and paste it in Dashboard → Appearance → Custom CSS after installing and activating the plugin). Also you can add CSS code directly to style.css file of your child theme.

#secondary .widget-title {
    background-color: lightgrey;
    padding: 12px 0 !important;
    text-align: center;
}

Please feel free to ask any other questions that you might have.

Kind Regards, Roman.

Thank you so much Roman,

It works like charm. Thank you again for your support and awesome theme.

You are welcome Arina,

And have a nice day :slight_smile:

Kind Regards, Roman.