Archived topic
How I can create this style for my widgets titles?
3 replies · Started by Former User on January 2, 2023
Hello,
How I can create this style with the full background red for my widget titles like it shows on the website below on widgets titles "Features, Forum Topics, Most read and so on."
Also, I would like to add this style for my sections titles.
Thanks,
Sara
Hi there,
you can add some CSS to target the H2 in the single post and in the sidebar :
.single-post h2, .sidebar h2 {
padding: 5px;
background-color: #f00;
color: #fff;
text-shadow: 1px 1px 2px rgba(0,0,0,.3);
}
Hello David,
How I can do the same for Single Post layout on the Comments Section so title "Leave a Comment" has same red style?
Thanks!
You can include the #reply-title selector in your CSS:
.single-post h2,
.sidebar h2,
#reply-title {
padding: 5px;
background-color: #f00;
color: #fff;
text-shadow: 1px 1px 2px rgba(0,0,0,.3);
}