• Resolved alise1983

    (@alise1983)


    Hi,

    Dazzling is great thanks but I have a little problem between the slider and the featured images in the displayed posts on my home.

    I made special category for the slider : “featured”. I create my future article and put on featured image, an image with the recommended sizes for the slider. I chose the catégory and add the category featured to display it on the slider.

    The slider works but it displays the post on my home with a quite large thumbnail. not like in your demo….

    I read the documentation and the recommended size for the feature image is 730 by 410 pixels. With this size i think that the thumbnails displaiys like your demo.

    So how too have the same artoicle in the slider and in my postst on my home with a nice thumbnail like on your demo ?!

    Thank you !

Viewing 5 replies - 1 through 5 (of 5 total)
  • make a backup first.
    in your content.php , locate the thumbnail code.
    change it to :

    <img height="//" width="//" src="<?=wp_get_attachment_url( get_post_thumbnail_id() ); ?>" >

    post a reply telling if it worked for you. it did for me !

    Thread Starter alise1983

    (@alise1983)

    thank you i’ll try it and let you know if it works.

    just to be sure, in my content.php i have :

    <?php if ( has_post_thumbnail()) : ?>
    ” title=”<?php the_title_attribute(); ?>” >
    <?php the_post_thumbnail( ‘dazzling-featured’, array( ‘class’ => ‘thumbnail col-sm-6’ )); ?>

    <div class=”col-sm-6″>
    <?php the_excerpt(); ?>
    </div>

    so i’m goign to replace <?php the_post_thumbnail( ‘dazzling-featured’, array( ‘class’ => ‘thumbnail col-sm-6’ )); ?> by your lines -> is that ok ?

    Thread Starter alise1983

    (@alise1983)

    Hey thanks i tried your solution but it’s not what i want… All the images have the same width but it takes all the content width and the featured image is above the text.

    Here is the test url :
    http://www.rhonalia.com/blog2/

    -> i need that all the images display like the first one on the page even if they are on the slider. But I also need the slider to be full size…

    on the demo there are full size images on the slider but the featured image have all the same size…

    THANK YOU

    Thread Starter alise1983

    (@alise1983)

    All right that’s my entire fault it works, it’s just a problem of images size, sorry !

    Thanx again !

    i see all images in your test category have the same height and width and that’s what you wanted. so now here’s what you are going to do : upload good quality images so if the width minimizes according to the code, the image will look just fine.
    nice layout by the way !

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to have same size for featured image in Dazzling Theme?’ is closed to new replies.