- This topic has 3 replies, 2 voices, and was last updated 9 years, 1 month ago by .
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.
These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.
When using the Magazine PRO theme and following the instructions found here http://www.studiopress.com/design/colored-content-boxes-buttons.htm when I insert Blue Button Link into the text editor as indicated, the font color #fff has no impact as the text font remains the theme set blue #469BD1.
Any insight into how I can override the theme font color for the text within these buttons is appreciated.
Try using !important at the end of your CSS rule like this:
color: #fff !important; to see if that overrides the existing CSS. If not, if you can post a link to your site, I'll try to help you find what's causing the conflict.
Hello. Thank you, using !important does work. Just curious, some of the articles I have read indicate not to use !important as it is thought to be poor programming practice. Will using !important in this instance cause issues down the road? Thanks again.
You're correct - it's not necessarily a best practice. However, it's not going to cause problems or break anything. I use !important in my stylesheets all the time if I have a stubborn element that doesn't want to do what it's supposed to do.
© 2023 WPEngine, Inc.