WordPress beautification: add background color to the H tag title of website articles
The webmaster friends who use the robin Begin theme believe that they have seen a lot of titles with background colors on the Chinese chapter pages using the robin Begin theme, which look much more conspicuous than the default. Today, I will tell you how the background color is added to the title of the H tag of the website article.
The code for adding background color to the title of the website article H tag. See the css style sheet for the location. Find the tag you want to add and add it directly border-bottom: 1px solid #ed0000; background-color: #d7caca;
That's OK. It's better for robin theme users to go directly to "custom style".
This blog instance is added as follows:
The effect is as follows:
Use the latest version for your own use (pay attention to modifying the css class name corresponding to your theme):
- .single- content h3,.single- content h4,.single- content h2{
- background : #ebebeb ;
- }
- .entry-header h1 {
- border-bottom : 1px solid #ed0000 ;
- background-color : rgba(255, 226, 82, 0.49);
- }
Original link: https://www.seoqe.com/403.html
Keywords: WordPress beautification, WordPress theme beautification, WordPress website beautification, robin Begin theme beautification, WordPress blog beautification