PressTigers

How to Deregister CSS Style Sheet of Contact Form 7

Contact Form 7 (CF7) gives you a way to create contact forms for your website with essential HTML markup. After forms creation, each of them can be used by means of shortcodes. These shortcodes are basically created by CF7 and can be utilized wherever required on the website.

Contact form 7 provides a default style to forms that may not be designed up to the aesthetic standards of your Theme design. To change the design of the form, you need to deregister CF7 default CSS first and then add a custom CSS code in your Theme‘s style.css file.

By using wp_print_styles hook, you can deregister the default CSS of CF7. For this, you just need to copy the following code and paste it in your Theme‘s functions.php file:

User Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

    Get in Touch