- This topic has 2 replies, 2 voices, and was last updated 3 years, 6 months ago by .
- The topic ‘Color Contrast Detector – Breakthrough Pro’ is closed to new replies.
These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.
Does anyone know how to disable the color contrast detector on the Breakthrough Pro theme? Its modifying my button text with an inline style sheet that I can't find and I don't want to have to hunt down every occurrence of it's color selecting activity and over-ride it with custom css in the theme customizer.
If you look in the theme's lib/helper-functions.php file you'll find 2 functions for determining color contrast and brightness. breakthrough_color_contrast and breakthrough_color_brightness. I would put a return; right before the $hexcolor variable in both functions so the function will essentially do nothing.
© 2022 WPEngine, Inc.