-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Hide the ads" setting adds a CSS rule that needs more specificity #94
Comments
Hi Doug, thanks for your report. Can you tell me (or show a screenshot) of which tab from the metabox plugin goes missing exactly? I installed the Meta Box plugin (https://wordpress.org/plugins/meta-box/) which does not come with any admin screen or settings, so a little clarity would be appreciated. |
Sorry for my own lack of specificity. Meta Box has quite a few extensions available, many of them premium. Builder is one of them that allows you to visually construct new meta boxes without code, similar to how ACF operates. Meta Box just released v4 of Builder a few days ago, which was rebuilt entirely in React. Thus this newly found conflict. When creating a new Custom Field with Builder, and adding a new field item, there are two tabs rendered across the top: General and Advanced. It's the Advanced tab (matching screenshot of a new Custom Field screen from Meta Box Builder with "hide the ads" checked: screenshot of same with it unchecked: If you'd like to poke around a clean dev WP install with Yoast, Hide SEO Bloat, and Meta Box with all relevant extensions installed and activated (and in isolation), just let me know where to send login credentials privately. |
Hi Doug, thanks for clarifying. |
As per our correspondence, I will remove the |
new version released on wp.org |
Expected behavior
CSS injected into wp_head should be specific enough so that it doesn't affect UI from other plugins or other parts of WP.
Current behavior
When "Hide the ads" checkbox is enabled, this selector is added to the CSS in wp_head:
.react-tabs__tab:last-child
That selector currently matches tabs rendered by other plugins unrelated to Yoast.
Possible solution
Add a tiny bit of specificity to this selector to narrow its focus to only hide elements on Yoast pages.
Context
Discovered this by noticing a tab rendered by the Metabox plugin was missing.
The text was updated successfully, but these errors were encountered: