Archived topic
Widget Button Text color
8 replies · Started by Dave on March 19, 2021
How can I change the button text to white and the visited text to blue on the subscribe button in my sidebar? Also I need to add space between the icon and the text and make it white as well.
Cheers,
Dave
Just following up on this.
Cheers,
Dave
Hi there,
How are you adding that button using GenerateBlocks in the sidebar?
I didn't know I could use Generateblocks in a sidebar widget. I am just using HTML at the moment.
cheers,
dave
That's generally not a good idea.
Try adding the buttons this way:
https://docs.generatepress.com/article/adding-buttons/
That is how I am doing it, I have just added an svg element to the button. But I can't get the text or the element color to show as white.
Any help would be appreciated.
cheers,
Dave
Hi there,
for the HTML Subscribe button you would need some CSS:
.sidebar a.button.subscribe-button {
color: #fff;
}
.sidebar a.button.subscribe-button:hover {
color: #f00;
}
Thanks David. That worked.
Cheers!
You're welcome