• Resolved Aaron

    (@aaronatfpc)


    On the given page, the Jetpack contact form CSS supersedes the CSS that was in place for our Contact Form 7 form. Contact Form 7 came with our theme, and I believe the form was in place before we ever installed/activated Jetpack. I’ve confirmed the contact form module in Jetpack is disabled, but this problem still occurs and makes this and one other form look much less appealing. Is there a way to turn off the Jetpack contact form CSS?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Aaron

    (@aaronatfpc)

    Fixed by adding just the following line to my child theme functions.php:
    add_filter( ‘jetpack_implode_frontend_css’, ‘__return_false’ );

    Source:
    https://css-tricks.com/snippets/wordpress/removing-jetpack-css/

    Inactive modules’ CSS was being concatenated with the rest anyway. Should probably fix that.

    • This reply was modified 8 years, 2 months ago by Aaron.
    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic 🚀

    You can add the following code snippet to your site to deactivate Jetpack’s Contact Form CSS:

    add_filter( 'jetpack_implode_frontend_css', '__return_false' );

    You can add that snippet to a functionality plugin like this one. Once you’ve done that you will be all set.

    In addition to that, we would also like to make our contact form classes more specific. You can follow the progress on this here:
    https://github.com/Automattic/jetpack/issues/5876

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Jetpack CSS trumps mine’ is closed to new replies.