Respostas no Fórum

Visualizando 2 respostas - 1 até 2 (de um total de 2)
  • Criador do tópico micheluzzi

    (@micheluzzi)

    se eu excluir esse código abaixo da pagina functions.php ele funciona, mas nao fica mais responsivo.

    require_once (‘admin/index.php’);

    function bootstrap_responsive_images( $html ){
    $classes = ‘img-responsive’; // separated by spaces, e.g. ‘img image-link’
    // check if there are already classes assigned to the anchor
    if ( preg_match(‘/<img.*? class=”/’, $html) ) {
    $html = preg_replace(‘/(<img.*? class=”.*?)(“.*?\/>)/’, ‘$1 ‘ . $classes . ‘ $2’, $html);
    } else {
    $html = preg_replace(‘/(<img.*?)(\/>)/’, ‘$1 class=”‘ . $classes . ‘” $2’, $html);
    }
    // remove dimensions from images,, does not need it!
    $html = preg_replace( ‘/(width|height)=\”\d*\”\s/’, “”, $html );
    return $html;
    }
    add_filter( ‘the_content’,’bootstrap_responsive_images’,10 );
    add_filter( ‘post_thumbnail_html’, ‘bootstrap_responsive_images’, 10 );

    function mes($maximo)
    {
    $mes = get_the_time(‘F’);
    $substr = substr($mes, 0, $maximo);
    if(strlen($mes) > $maximo){
    echo $substr;
    }else {
    echo $mes;
    }
    }

    Criador do tópico micheluzzi

    (@micheluzzi)

    entao @valeriosza, qualquer valor que eu coloque lá, fica do mesmo tamanho do print.

Visualizando 2 respostas - 1 até 2 (de um total de 2)