Ready to get started?Download WordPress


Make thumbnails responsive (4 posts)

  1. wambamboo
    Posted 2 years ago #


    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?

  2. alchymyth
    Forum Moderator
    Posted 2 years ago #

    'responsive' in what sense?

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

  3. wambamboo
    Posted 2 years ago #

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

  4. wambamboo
    Posted 2 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