• 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 );

Viewing 1 replies (of 1 total)
  • Thread Starter zgillet

    (@zgillet)

    PS here is the form shortcode:

    [honeypot website id:website class:col-xxs-12 class:col-sm-12 class:hard-half--right class:form-row timecheck_value:2 timecheck_enabled:true]

Viewing 1 replies (of 1 total)
  • The topic ‘Changing CSS’ is closed to new replies.