Ver Mensaje Individual
  #3 (permalink)  
Antiguo 02/11/2010, 08:07
American2010
 
Fecha de Ingreso: abril-2003
Mensajes: 1.129
Antigüedad: 21 años
Puntos: 34
Respuesta: Borrar css de WP-Polls del header

En el archivo wp-polls.php del plugin encontrarás en la linea 179 y siguientes, algo así...

Código PHP:
function poll_head_scripts() {
    
$pollbar get_option('poll_bar');
    echo 
'<style type="text/css">'."\n";    
    if(
$pollbar['style'] == 'use_css') {
        echo 
'.wp-polls .pollbar {'."\n";
        echo 
"\t".'margin: 1px;'."\n";
        echo 
"\t".'font-size: '.($pollbar['height']-2).'px;'."\n";
        echo 
"\t".'line-height: '.$pollbar['height'].'px;'."\n";
        echo 
"\t".'height: '.$pollbar['height'].'px;'."\n";
        echo 
"\t".'background: #'.$pollbar['background'].';'."\n";
        echo 
"\t".'border: 1px solid #'.$pollbar['border'].';'."\n";
        echo 
'}'."\n";
    } else {
        echo 
'.wp-polls .pollbar {'."\n";
        echo 
"\t".'margin: 1px;'."\n";
        echo 
"\t".'font-size: '.($pollbar['height']-2).'px;'."\n";
        echo 
"\t".'line-height: '.$pollbar['height'].'px;'."\n";
        echo 
"\t".'height: '.$pollbar['height'].'px;'."\n";
        echo 
"\t".'background-image: url(\''.plugins_url('wp-polls/images/'.$pollbar['style'].'/pollbg.gif').'\');'."\n";
        echo 
"\t".'border: 1px solid #'.$pollbar['border'].';'."\n";
        echo 
'}'."\n";
    }
    echo 
'</style>'."\n";
    
wp_print_scripts('jquery');

Lo dejaría así...

Código PHP:
function poll_head_scripts() {
    
$pollbar get_option('poll_bar');
    if(
$pollbar['style'] == 'use_css') {
    } else {
    }
    
wp_print_scripts('jquery');

Probalo, imagino que tiene que funcionar.
__________________
elGastronomo