Support » Plugin: Post Tiles » Resize featured image to match tile size

  • Resolved NoHoSe

    (@nohose)


    I wanted to have my featured images shown completely as tile background i.e. no cropping).
    I tried as per http://wordpress.org/support/topic/featured-image-thumbnails-1 without success.
    The solution I found was to replace (in post-tiles.php) the following code around line 565:
    $featured_style = "style='background: url(".$url.") 0 0;' class='featured-image ".$animation_style." ".$cat_var."'";
    by this one:
    $featured_style = "style='background-image: url(".$url."); background-size: contain;' class='featured-image ".$animation_style." ".$cat_var."'";
    Just thought I’d share this…

    http://wordpress.org/extend/plugins/post-tiles/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Resize featured image to match tile size’ is closed to new replies.