WordPress.org

Ready to get started?Download WordPress

Forums

Make thumbnails responsive (4 posts)

  1. wambamboo
    Member
    Posted 3 years ago #

    Hi

    I'm using <?php the_post_thumbnail(); ?> to include featured images on my blog page but can't seem to make then responsive. I've a feeling I need to put something between those brackets but not sure what.

    Can anybody help me?
    Thanks

  2. 'responsive' in what sense?

    can you describe your idea of 'responsive' in more detail?

  3. wambamboo
    Member
    Posted 3 years ago #

    I'd like the images to resize proportionally when the browser window is resized.

  4. wambamboo
    Member
    Posted 3 years ago #

    I found this tutorial http://www.blissfulinterfaces.com/making-wordpress-images-responsive/

    but if I enter this:

    function remove_wp_width_height($string){
    return preg_replace(ā€˜/\/iā€™, ā€,$string);
    }

    into my functions.php file, my entire site goes down.

Topic Closed

This topic has been closed to new replies.

About this Topic