DavePI Posted January 16, 2023 Share Posted January 16, 2023 I am having an odd situation where I've added a Primary Button to a page, which links to another page on the site, but the text is the same color as the background. However, according to the theme (see screen shot) the text should be white. It appears that the primary button text color choice is being ignored. If I change it, the button text color does not change. But if I change the background color, the background color changes. What could be overriding my primary button text color? Link to comment
tuanphan Posted January 19, 2023 Share Posted January 19, 2023 Maybe your custom code. Can you share link to page where you have problem? We can check easier Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
DavePI Posted January 21, 2023 Author Share Posted January 21, 2023 The website is at https://winecurrent.squarespace.com/ Link to comment
Solution DavePI Posted January 21, 2023 Author Solution Share Posted January 21, 2023 (edited) Digging deeper I can see what the issue is. The site.css contains the following styling for anchor tags a { color: #8a2445 !important; text-decoration: none !important } The link colour overrides the button text colour, and I guess my link colour is the same as my button colour. I find the override situation a bit odd, considering most buttons are links. Why have a button text colour setting if it is never going to be used? EDIT: I am really forgetful! The problem is caused by custom CSS that I myself added as custom CSS. Doh! Now if I can just remember why I added that custom CSS 😛 Edited January 21, 2023 by DavePI Discovered I am silly! tuanphan 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment