Site logo

Archived topic

Button colours not working

7 replies · Started by Ian on June 20, 2020

Viewing posts 1–8 of 8

Hello
I am having some issues with buttons in the widgets.
They do not have the same colours as the rest of the buttons in the site .
The text colour is simply doing its own thing.
I have tried changing "class" and CSS but it still persists.
I had this issue before for a button in the top bar and was given a small piece of code that solved the issue.
However I don't know how to rewrite it so it also works for buttons in the widgets.
Thank you again for your help
Ian

Hi there,

Which button should I be looking at?

It's the buttons in the widgets on any of the archives or posts.
Thank you
Ian

Can you try setting the Link color in Customizer > Colors > Sidebar Widgets to #fff?

Hi
That worked great, but changed the in text link as well.
I think I can work around that though, so all great, thank you.
Please can I ask whilst I am here...
Is it possible to remove the padding around the images in the archive pages?
I know I can do this with the container setting, however I like the way it looks having the separate boxes.
Just not the padding around the top, left and right of the images in the archives.
Thank you
Ian

That worked great, but changed the in text link as well.
I think I can work around that though, so all great, thank you.

That case you'd need to add a custom class to the buttons in the sidebar so we can target separately.

Let me know if you need help with it.

Can you open a new topic for the separate question?

Thanks :)

Thats fantastic thank you.
I have tried adding a custom class following the instructions on the page (https://docs.generatepress.com/article/adding-buttons/) but for some reason it still didn't work...
With the button in the top bar (which had the same issue, this seemed to make it work properly....
/* Top Bar Button */
.secondary-navigation .top-bar a:hover,
.secondary-navigation .top-bar a:focus {
color: white;
}
Anyway, any help would be fantastic.
Thanks again
Ian

Looks like it's all working?

What's the current issue?

This archived topic is closed to new replies.