Suporte » Temas e templates » Imagem destacada – Post

  • Resolvido maiarareinertt

    (@maiarareinertt)


    Estou com um problema na configuração da imagem destacada no post.

    Meu tema é o Lucid do Elegant themes.

    A imagem fica sempre cortada em 180 x 180.

    Ja tentei alterar o add_image_size, como indicam em outros tópicos, mas nada resolve.

    O código é o seguinte:

    <?php
    add_theme_support( ‘post-thumbnails’ );

    $et_theme_image_sizes = array(
    ‘630×210’ => ‘et-blog-thumb’,
    ‘960×360’ => ‘et-featured-thumb’,
    ’37×37′ => ‘et-widget-fromblog-thumb’,
    ‘136×77’ => ‘et-video-slider-thumb’,
    ‘300×300’ => ‘et-home-image-thumb’,
    );

    $et_page_templates_image_sizes = array(
    ‘500×600’ => ‘et-blog-page-thumb’,
    ‘207×136’ => ‘et-gallery-page-thumb’,
    ‘260×170’ => ‘et-portfolio-medium-page-thumb’,
    ‘260×315’ => ‘et-portfolio-medium-portrait-page-thumb’,
    ‘140×94’ => ‘et-portfolio-small-page-thumb’,
    ‘140×170’ => ‘et-portfolio-small-portrait-page-thumb’,
    ‘430×283’ => ‘et-portfolio-large-page-thumb’,
    ‘430×860’ => ‘et-portfolio-large-portrait-page-thumb’,
    );

    $et_theme_image_sizes = array_merge( $et_theme_image_sizes, $et_page_templates_image_sizes );

    $et_theme_image_sizes = apply_filters( ‘et_theme_image_sizes’, $et_theme_image_sizes );
    $crop = apply_filters( ‘et_post_thumbnails_crop’, true );

    if ( is_array( $et_theme_image_sizes ) ){
    foreach ( $et_theme_image_sizes as $image_size_dimensions => $image_size_name ){
    $dimensions = explode( ‘500×600’, $image_size_dimensions );
    add_image_size( ‘et-blog-thumb’, 400, 400);

    }
    }
    ?>

A visualizar 1 resposta (de um total de 1)
A visualizar 1 resposta (de um total de 1)
  • O tópico ‘Imagem destacada – Post’ está fechado a novas respostas.