Hi @starboxuser,
Thank you for your suggestion.
Normally the Author Box should have the same background as the Theme.
But you can set the background color through CSS:
.abh_tab_content{
background-color: #f8f8f8;
}
Best, Calin
Thread Starter
WP_user
(@starboxuser)
Thank you! Where should I add this code?
You can add the code in the Custom CSS in your WordPress theme.
Thread Starter
WP_user
(@starboxuser)
Can you tell me the path plz?
/sitename.com/docs/wp-content/themes/twentytwelve-child
and then? What file?
-
This reply was modified 3 years, 5 months ago by
WP_user.
Thread Starter
WP_user
(@starboxuser)
You can add the code in the Custom CSS in your WordPress theme.
You used !important rule, so i have to use it too?
-
This reply was modified 3 years, 5 months ago by
WP_user.
Hi,
You can add it to your child’s theme in the style.css file.
Or, you can go to Appearance > Customize and the last option should be Custom CSS.
Hope this helps.
Calin
Thread Starter
WP_user
(@starboxuser)
Thank you!
P.S. Is there a way not to use !important rule? I cannot use child’s theme style.css rules because of it.
-
This reply was modified 3 years, 4 months ago by
WP_user.
The !important option was added because of so many themes that were changing the author box layout.
If you use the same class and add !important you can change the style.
.abh_tab_content{
background-color: #f8f8f8 !important;
}
Thread Starter
WP_user
(@starboxuser)
Excuse me for wasting your time, but isn’t your class name unique? Is there a reason to use important for unique class?
The class is unique, the problem is that the CSS can be applied on a div too.
There are themes that change all the divs globally.