I want a button to switch to another color when hovering over it. Can’t figure out how to do this in the general settings.
There isn’t yet an editor setting to change a button’s background colour when hovered.
You can do this either via CSS or by creating a child theme and adding some lines to the theme.json file. CSS is probably the simpler route for most folks. Here’s an example with a test colour, which you can change to your liking:
/* Button hover state */
.wp-block-button__link:hover {
background-color: #bb00bb;
}
While the Customizer is not exposed by default when using Site Editing, you can still access it manually by adding /wp-admin/customize.php after your URL. You can then add custom CSS in the Additional CSS area.
And also I want to switch only the color of a linked text but don’t want that it is underlined.
You can remove underlines on links either with the Gutenberg 15.2.4 plugin, or in the upcoming WordPress 6.2 release.
The option will be under Appearance > Editor > Styles > Typography > Links:
No ideas?
p.s. Thanks for your patience. Default themes are a community project, and these forums are handled by volunteers.
Thank you so much for your reply in such details. I am very grateful for these comprehensive explanations.Its very helpfull for my understanding of the current editor functions and whats coming up with wp 6.2. thnx!!