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

Popular posts from this blog

c++ - How to add Crypto++ library to Qt project -

jQuery Mobile app not scrolling in Firefox -

How to use vim as editor in Matlab GUI -