php - How to make the featured image without a fixed position? -
i know how style featured image , give class, don't want have fixed position. instead, want have custom position every post (i set position manually every post). how possibly can achieve ?
add code in post loop, make way want :
<?php if ( has_post_thumbnail() ) the_post_thumbnail(); else echo '<img src="' . trailingslashit( get_stylesheet_directory_uri() ) . 'images/default- thumbnail.png' . '" alt="" />'; ?>
Comments
Post a Comment