Archived topic
Changing text colours in widget button
6 replies · Started by Carole on September 12, 2018
Hello,
I have use the CSS code Your button text for a widget button.
I wouldl ike to change the colour of the button text and hover text.
Is there a code for this please?
Thanks
Carole
Hi there,
you can add a button in a widget using the HTML widget and this:
<a class="button" href="url">My GP styled button</a>
The button class will use the button colors set in the customiser.
If you want to vary from that then this article explains:
https://docs.generatepress.com/article/adding-buttons/
Let me know :)
Thank you :) :) :)
Hello, me again,
I now have the button but I want to override the text colour from #000000 to #ffffff which is set in GP customise.
Any extra CSS I need to add?
Thanks a million
Carole
Can you link me to the page in question?
Hi!
The site is not live
Do you want admin access?
Carole
Have you tried giving the buttons a second class so you can style them differently from the customizer?
Basically follow the instruction of this article:
https://docs.generatepress.com/article/adding-buttons/