.entry-content a:hover
is more specific than .wp-block-button__link:hover
.
According to the rules of specificity, the first selector contains 2 class selectors (.entry-content
and :hover
), and 1 type selector (a
), for a specificity score of 0,0,2,1
.
The second selector, on the other hand, contains 2 class selectors (.wp-block-button__link
and :hover
), and no type selectors, for a score of 0,0,2,0
.
It wasn’t clear to me from your question where exactly the second set of selectors was coming from, but assuming that you can’t edit them, the solution would be to exclude Gutenberg buttons from your original selector. You can do this with the :not
pseudo class:
.entry-content a:not(.wp-block-button__link):hover {
color: <color selected in the Customizer>;
}
Now your Customizer-selected colour will only apply to links that are not block editor/Gutenberg buttons.
Related Posts:
- Will WordPress updates remove Gutenberg Additional Classes?
- Is it possible to ad custom block areas through Customizer that would allow adding Gutenberg blocks?
- Edit style.css via theme customizer
- adding additional css classes have no effect within block editor
- Repeater field in Customizer
- How WP_Customize_Background_Image_Control is supposed to work?
- How to print the value of a custom control in the Customizer?
- Customizer JS API dynamically add sections and controls
- Get all registered wp theme customizer sections?
- get_theme_mod doesn’t return the theme customizer preview’s new values in after_setup_theme hook
- Conditional Logic to Check for Site Icon
- How do I check if user input in a field in the customizer is a number?
- How to access the nav_menus panel with the customizer api?
- Add or remove HTML class with selective refresh?
- How to add theme customizer control to specific page?
- Section Name for Menu in Theme Customizer
- WordPress Customizer not setting default value upon initial install?
- Is it still possible to nest panels within panels within the customizer?
- What is the difference between sanitize_text_field() and wp_filter_nohtml_kses()?
- How to move Menus customizer section directly under Site Identity?
- Removing http:// from esc url() for wordpress customizer code
- Send data from Customizer Settings to Customizer Preview with settingless control
- How to use rgba color from theme customizer color picker
- WP Customizer JS Template not saving color field
- site identity section name?
- WordPress code editor VS customizer “built-in CSS editor”?
- How do i remove the ‘WooCommerce’ section from Customizer in Twenty Sixteen Theme?
- Customizer options
- How to suppress anchor tag click redirection in customizer preview frame?
- How do i add edit shortcut icon in wordpress without using selective refresh
- Hide or remove the Remove button in WP_Customize_Image_Control
- Dynamic IDs in WordPress Customizer value bindings
- What is the name of the setting in the customizer for ‘Display Site Title and Tagline’ checkbox?
- Theme Customizer – Hide / grey out settings based on other setting
- HTML output via Theme Customizer is not working
- How to get customizer to refresh when using radio buttons control
- adding checkbox to theme customizer
- Customizer notifications for disabled and hidden controls
- Theme Customizer – Text without a setting (a comment or tag)
- Does theme customizer need theme-customizer.js?
- How to stop Gutenberg from outputting inline CSS for specific blocks?
- Enqueue styles in new site editor in WordPress 5.9
- How do you approach block structured content?
- customizer options not showing
- Save customizer setting to post meta
- JS event similar to render-partials-response in wordpress customiser selective refresh when the request is initialised?
- WordPress Customizer checkbox default not working
- Add customiser controls directly to a panel
- How to make customizer settings appear only when image is uploaded?
- get_theme_mod only returns false
- Get Image Width From WP_Customize_Image_Control() File Set in WP Theme Customizer
- My background color customizer doesnt work
- Initials of email looks strange on WordPress Website
- Customizer section gone after adding second
- Sidebar visibility in {WordPress template Hyerarchy, Newspaper Theme, TagDiv Composer}
- How to create a tooltip behind a customizer setting label?
- Customize control does not show value of setting which was added via JS API
- Add Customize posts edit links to selectively refreshed partials [closed]
- How to use variable from customizer.php in customizer.js
- Customizer Values Not Saving in Custom Theme
- customiser settings for checkbox (displaying content)
- Customizer.js changes not being recognized
- No option to select home page in theme customizer
- WP_Filesystem in custom customize control
- WP 3.8 theme customizer error
- Indenting within a blockquote
- Want to permanently remove pagination number page/2/ in WordPress
- Making the menu toggled open on mobile devices Illustratr theme
- How to get a custom field in theme customizer to live update the element in preview window?
- How to make a block for header font styling at customizer via function.php?
- Theme Customization with WP CLI
- @font-face in Customize Control
- customizer not working when ever i activate ssl
- how to sanitize customizer checkbox control
- Default customizer colors aren’t displayed outside of the preview
- Customizer Appearance Issue
- How to change the width of certain paragraph or header blocks?
- Adding Custom Image To Header Via New Customizer Setting
- Fetch customizer image and output as an inline css style background image
- Why is my custom WordPress Customizer section disappearing after about a second?
- Why Settings API Options Override Customizer Settings?
- Customizer partial refresh issue with custom option
- Issues Saving Long String Option
- Theme Customizer: issue with default checkbox values
- WordPress Customizer Not Setting Custom Settings or Controls
- Stop refresh event in customizer
- Customizer: CSS changes not persistent
- Problem with customizer setting with $id containing ‘widget’
- Default Customizer Code
- default custom background image not saved in database when creating a new site
- My stylesheet doesn’t appear in theme-editor
- How to display specific title on Customizer?
- How do I add custom CSS animations for specific Gutenberg blocks?
- Insert a group block inside a list item
- What is a suitable sanitize_callback for logo image in Customizer?
- Remove Astra Customizer Panels [closed]
- How to add arbitrary custom CSS to a WordPress Block Theme using Site Editor?
- Gutenberg: where to find style settings
- How to access files outside /var/www/html
- Where did I put this one line of css?