Remove image size when used in responsive theme
-
Hi,
I am wondering what code i need to change here,, in order that the thumbnail images have no set size, and can be controlled by my theme CSS wich states width:100%; height:auto :
<?php if( $thumbnail == true ) { // If the post has a feature image, show it if( has_post_thumbnail() ) { the_post_thumbnail( $thumbsize ); // Else if the post has a mime type that starts with "image/" then show the image directly. } elseif( 'image/' == substr( $post->post_mime_type, 0, 6 ) ) { echo wp_get_attachment_image( $post->ID, $thumbsize ); } } ?>Curently, when using Firebug, i can see that it’s taking the thumbnail size as stated in my WP Media Settings. However, images elsewhere on my site and in other plugins don’t seem to be affected by those Media settings, which i prefer.
thanks in advance of any help anyone can offer.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Remove image size when used in responsive theme’ is closed to new replies.