WordPress.org

Ready to get started?Download WordPress

Forums

Grunion Contact Form
grunion.css loads despite wp_dequeue_style in functions.php (with sol (3 posts)

  1. Niklas
    Member
    Posted 2 years ago #

    I discovered on line 635 in grunion-contact-form.php that I can remove the supplied CSS styles to have greater control of my own styling of the contact form.

    /* Can be dequeued by placing the following in wp-content/themes/yourtheme/functions.php
    	 *
    	 * 	function remove_grunion_style() {
    	 *		wp_dequeue_style('grunion.css');
    	 *	}
    	 *	add_action('wp_print_styles', 'remove_grunion_style');
    	 */

    This did not work and it turns out I had to also delete/ comment line 27 in grunion-contact-form.php to actually remove the CSS file.

    http://wordpress.org/extend/plugins/grunion-contact-form/

  2. francoisromain
    Member
    Posted 2 years ago #

    thanks !
    usefull tip.

  3. francoisromain
    Member
    Posted 2 years ago #

    here is the correct syntax to remove css
    (as seen here : http://plugins.trac.wordpress.org/changeset/441741 )

    function remove_grunion_style() {
    wp_dequeue_style('grunion.css');
    wp_deregister_style('grunion.css');
    }
    add_action('wp_print_styles', 'remove_grunion_style');

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic