.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
- WordPress 6.4.2 – can’t load editor style css using ‘after_setup_theme’ or ‘admin_init’ actions
- Where is Customizer related data stored is the database?
- How to add a custom CSS class to core blocks in Gutenberg editor?
- How do I implement selective refresh with a customizer setting?
- Are there Gutenberg container blocks?
- How to create a theme customizer ‘sub’ panel?
- show classes as dropdown in guttenberg`s additional css classes input box
- Use default value of wp_customizer in theme_mod output?
- Repeater field in Customizer
- Adjust the Device Preview sizes used in the WP 4.5 Customizer
- WP Customizer – Prevent live preview
- How to upload multiple images with WP_Customize_Media_Control
- Different customizer previewUrls per section
- Is there any way to add placeholder for WordPress Customizer text input fields
- How WP_Customize_Background_Image_Control is supposed to work?
- Custom editable content for front page from Theme Customizer
- Editing the custom background CSS
- How to print the value of a custom control in the Customizer?
- Style new block-editor alignfull class without scrollbars or overflow
- Add/remove controls dynamically based on other settings in Customizer
- Customizer JS API dynamically add sections and controls
- Get all registered wp theme customizer sections?
- Add custom background to div in home page
- Theme customizer – possible to disable Live Preview?
- get_theme_mod doesn’t return the theme customizer preview’s new values in after_setup_theme hook
- How do I handle the “WP_Customize_Cropped_Image_Control” callback?
- How to mix partial and full page refresh in the same section of the customizer?
- Conditional Logic to Check for Site Icon
- Theme Customization API options on install
- 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 a “loading” notice when Customizer is making changes
- Make Theme Options Native to Theme Customizer
- How do I conditionally enqueue stylesheets or scripts in theme customizer settings?
- What CSS rules are introduced to core blocks through wp-block-styles?
- Internalize get_theme_mod CSS Into Stylesheet?
- Customiser `active_callback` not working on control with `postMessage` transport method
- Is it possible to conditionally displaying and hiding of customizer controls for each device preview?
- How to get control choices from $setting object passed to sanitize_callback
- Can I change a control’s transport in Customizer depending on the previewed page?
- Passing data from customize-controls.js to the customize-preview.js
- Add or remove HTML class with selective refresh?
- Get attachment id from WP Customizer
- How to output WP_Customize_Cropped_Image_Control setting?
- Why does get_theme_mod return blank (or default value) but get_option returns saved value?
- How to hook on customizer section expanded/active/opened event?
- Get current post ID of customizer preview window
- Deactivate sections/panels when the Customizer finishes loading
- How do I use add_control to offer a list of all pages in the customiser?
- Add button to Customizer
- Visible Edit Shortcut for WordPress menu that uses nav walker
- How to add theme customizer control to specific page?
- Customizer active callback live toggle controls
- Why is remove_setting and remove_control not working?
- Section Name for Menu in Theme Customizer
- WordPress Customizer not setting default value upon initial install?
- Gutenberg Block Editor Match Admin Styles & Frontend Styles
- Is it still possible to nest panels within panels within the customizer?
- Get_theme_mod not retrieving value
- Need to run a plugin on Customize.php
- Customizer preview doesn’t update get_option() value properly
- Theme Customizer – Dynamic CSS PHP File
- What is the difference between sanitize_text_field() and wp_filter_nohtml_kses()?
- Customizer Issue, Default Settings not working
- How to move Menus customizer section directly under Site Identity?
- Changing Gutenberg / WP block editor width only on pages, not posts or other taxonomies
- Is it possible to create a full width row in WordPress’s editor window? [closed]
- WP customizer + gulp + browsersync = refused to display in iframe?
- Set Default Page On Customizer Live Preview
- Rename and rearrange customizer section
- Make Customizer Load Specific Page
- Theme Customizer Custom Background / Header Image
- get_theme_mod not working
- Customizer not saving image settings
- How to hide few theme customization options – TwentySeventeen theme
- Panel description in Customizer does not show up
- Removing http:// from esc url() for wordpress customizer code
- @wordpress/create-block image url in css
- Theme Customizer – My panel disappears
- Send data from Customizer Settings to Customizer Preview with settingless control
- If I dequeue Gutenberg Stylesheet will that have any effect on WordPress 5.0.1?
- Author functions don’t work in customizer’s selective refresh
- Modify the Additional CSS section (adding a disclaimer)
- How to remove mixed content warnings in WP Customizer
- How to extend Customizer payload sent when ‘Save & Publish’ is triggered
- Does the customizer support multiple templates?
- Using Theme Customizer Built-In Sections
- How to use rgba color from theme customizer color picker
- Theme Customizer changes are dissappearing when change page
- is it possible to use post-type as part of a css selector in block editor stylesheet?
- Remove WordPress/Gutenberg button styles for ACF blocks
- How can a default site icon be set in customizer?
- Can the Theme Customizer be used to generate static/cachable CSS, and how?
- New customizer setting not showing value
- Customizer Selective Refresh doesn’t refresh properly with saved value
- WP Customizer JS Template not saving color field