Defining a button for a widget with a specific text color

Posted in: Newspaper
Post count: 9

Hi, I’ve added a button to a widget, but it appears with black text, whereas on a page it appears correctly with the defined style.

https://ibb.co/hRnKC7J

I’ve tried pasting the style without success.
Thanks for your help 🙂

  • This topic was modified 2 years by Slimane. Reason: pb link
Post count: 21065

Hello!

In order to avoid misunderstandings, please provide more information(screenshots/video) about what exactly you need to achieve.

A solution for sending a screenshot/video is this:
Download, capture, and send: https://www.techsmith.com/jing-tool.html
After making the screenshot, you will have a link; paste it here.

Thank you!

Post count: 9

Here the video, i need to create a button in widget part with blank text, not black text.
Thanks
https://streamable.com/cxn689

Post count: 9

You’ll see that the appearance of the button isn’t the same as on a page: the text appears in black, which is illegible.
Thank you very much

Post count: 21065

Hello!

You could fix it with some CSS code. For example:

.wp-block-button:not(.is-style-outline) a.wp-block-button__link:not([class*="has-background"]) {
background-color: #fff;
color:red;}

Thank you!

Post count: 9

Hello Bettina, thank you very much ! its ok 🙂

have a good journey,
Best regards

Post count: 21065

Hello!

I’m glad I could help you!

Have a nice day!

Viewing 7 posts - 1 through 7 (of 7 total)
The forum ‘Newspaper’ is closed to new topics and replies.