Handling image display in responsive WordPress theme ?>

Handling image display in responsive WordPress theme

I am developing a responsive WordPress theme using bootstrap. During my WordPress theme development, i struck with a problem while displaying an image. The problem was of image re-sizing. When the theme is displayed on mobile device, the image was getting pulled long. In my theme template file, the following code display the image. <?php echo ‘<div class=”featured-image”>’; the_post_thumbnail(‘custom-size’); echo ‘</div>’; ?> In above code uses ‘custom-size’. The ‘custom-size’ for the post thumbnail image is defined in functions.php file using… Read More Read More