-
Rob Ruifrok
My link color is the same as the background color of my buttons. When I add a button with tagname ‘a’ and set the color to white, the textcolor in the button is overridden by the set linkcolor and invisible. When I change the tagname to button the textcolor is OK, but using the button tagname there is no option to set a link (which seem a bit odd to me).
As far as a can see there is an important difference in the css selector generated by Generateblocks. The ‘old’ button has a selector like ‘a.gb-button-ea6c6eef
‘ which takes precedence over ‘.inside-article a
‘. The new button has a selector like.gb-text-a3fefade
which has no precedence.
Demonstrated here:https://fysiodynamics.nl/pijn-aan-voorkant-van-je-onderbeen/ -
Alvind
Hi there,
Remove the link color set under Customize > Colors > Content > Link and set the link color under Customize > Colors > Body > Link instead. That should resolve the issue.
-
Rob Ruifrok
Thanks for the answer. This solves my initial problem, but I’m still wondering why it is not possible to add a link, when using the tagname ‘button’.
-
<button>
tag in HTML usually doesn’t have a link and is used to trigger JS or a function, while the<a>
tag is for links.Check this for more info:
https://www.w3schools.com/tags/tag_button.asp
- You must be logged in to reply to this topic.