Changing CSS
-
Hello. I’ve seen the github page with how to change the honeypot CSS in PHP, but it isn’t working.
I use the plugin Code Snippets, and added a PHP snippet to change the css of the honeypot to be visible, inserted the snippet shortcode, but it still is hidden.
Am I doing something incorrect? I used the exact Github code:
// Customize Honeypot container CSS styles
function my_honeypot_css_override( $css ) {
// Change the $css value to your custom CSS to be applied to the honeypot's parent wrapper element.
$css = 'display: block; visibility:visible;';
return $css;
}
add_filter('wpcf7_honeypot_container_css', 'my_honeypot_css_override', 10, 2 );
- The topic ‘Changing CSS’ is closed to new replies.