Réglage the_post_thumbnail largeur à 100%
Comment définir the_post_thumbnail
, afin de ne pas utiliser un tableau pour sa taille, mais plutôt de l'ensemble avec un 100% de la largeur et de l'automobile hauteur:
<?php $ht_featured_img = get_option('ht_featured_img');
if ($ht_featured_img == "true") { ?>
<?php if ( (function_exists('has_post_thumbnail')) && (has_post_thumbnail()) ) { /* if post has a thumbnail */ ?>
<div class="post-image">
<?php the_post_thumbnail( array(1215,9999) ); ?>
</div><!--post-image-->
<?php } ?>
<?php } ?>
OriginalL'auteur Brian | 2013-09-19
Vous devez vous connecter pour publier un commentaire.
merci @subharanjan.
OriginalL'auteur Subharanjan
OriginalL'auteur user3264236
Vous pourriez tout aussi bien utiliser
OriginalL'auteur Leon Hoffmann