WordPress.org

Ready to get started?Download WordPress

Forums

How to remove WP Polls CSS from Head (2 posts)

  1. juancile
    Member
    Posted 3 years ago #

    Hi!
    I have WP Polls installed on my WordPress.
    This plugin add some CSS code in WP head. This is the code:

    <style type="text/css">
    .wp-polls .pollbar {
        margin: 1px;
        font-size: 8px;
        line-height: 10px;
        height: 10px;
        background-image: url('http://www.my-site.com.ar/wp-content/plugins/wp-polls/images/default_gradient/pollbg.gif');
        border: 1px solid #c8c8c8;
    }
    </style>

    How to delete this code?!?!?!
    Help please!
    Thanks!

  2. alkafy
    Member
    Posted 3 years ago #

    Add this to your functions.php:

    remove_action('wp_head', 'poll_head_scripts');

    Also, it adds in polls-css.css. Would you like that removed?

    Edit: If so, add this to functions.php as well:

    add_action('wp_print_styles', 'polls_deregister_styles', 100 );
    
    function polls_deregister_styles() {
    	wp_deregister_style( 'wp-polls' );
    }

Topic Closed

This topic has been closed to new replies.

About this Topic