Title: Thumbnail sizes are missing (including patch code)
Last modified: February 4, 2017

---

# Thumbnail sizes are missing (including patch code)

 *  Resolved [oichinokata](https://wordpress.org/support/users/oichinokata/)
 * (@oichinokata)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/thumbnail-sizes-are-missing-including-patch-code/)
 * Dear Themeisle and odeinwp,
 * Thank you for developing the great plugin.
    I’m making a function for ‘feedzy_thumb_output’
   filter. It rewrites $contentThumb, then it displays the thumbnail by img tag 
   in my functions.php. The functions needs width/height property for img tag, but
   original $contentThumb doesn’t include them as style. The version 2.8 had them
   as style, but 3.0.7 doesn’t have. Could you restore the style at the next version?
 * Here is a sample patch code.
 *     ```
       --- feedzy-rss-feeds-3.0.7/includes/abstract/feedzy-rss-feeds-admin-abstract.php	2017-01-27 10:37:28.000000000 +0900
       +++ feedzy-rss-feeds/includes/abstract/feedzy-rss-feeds-admin-abstract.php	2017-02-04 10:15:28.405339299 +0900
       @@ -504,10 +504,10 @@
        			if ( ( ! empty( $theThumbnail ) && $sc['thumb'] == 'auto' ) || $sc['thumb'] == 'yes' ) {
        				if ( ! empty( $theThumbnail ) ) {
        					$theThumbnail = $this->feedzy_image_encode( $theThumbnail );
       -					$contentThumb .= '<span class="fetched" style="background-image:  url(' . $theThumbnail . ');" alt="' . $item->get_title() . '"></span>';
       +					$contentThumb .= '<span class="fetched" style="width:' . $sizes['width'] . 'px; height:' . $sizes['height'] . 'px; background-image:  url(' . $theThumbnail . ');" alt="' . $item->get_title() . '"></span>';
        				}
        				if ( $sc['thumb'] == 'yes' ) {
       -					$contentThumb .= '<span class="default" style="background-image:url(' . $sc['default'] . ');" alt="' . $item->get_title() . '"></span>';
       +					$contentThumb .= '<span class="default" style="width:' . $sizes['width'] . 'px; height:' . $sizes['height'] . 'px; background-image:url(' . $sc['default'] . ');" alt="' . $item->get_title() . '"></span>';
        				}
        			}
       ```
   
 * Could check it?
 * Kind Regards,
    Oichinokata

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Themeisle](https://wordpress.org/support/users/themeisle/)
 * (@themeisle)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/thumbnail-sizes-are-missing-including-patch-code/#post-8826392)
 * Hey [@oichinokata](https://wordpress.org/support/users/oichinokata/),
 * Sorry for the delay, i have added the sizes as parameter to the feedzy_thumb_output
   in order for you to properly edit it.
 * Let me know if you need anything else.
 *  Thread Starter [oichinokata](https://wordpress.org/support/users/oichinokata/)
 * (@oichinokata)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/thumbnail-sizes-are-missing-including-patch-code/#post-8835716)
 * Dear Themeisle,
 * You are smart! Thank you cool update!
 * Kind Regards,
    Oichinokata

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Thumbnail sizes are missing (including patch code)’ is closed to new 
replies.

 * ![](https://ps.w.org/feedzy-rss-feeds/assets/icon-256x256.gif?rev=3418285)
 * [RSS Aggregator by Feedzy – Feed to Post, Autoblogging, News & YouTube Video Feeds Aggregator](https://wordpress.org/plugins/feedzy-rss-feeds/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/feedzy-rss-feeds/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/feedzy-rss-feeds/)
 * [Active Topics](https://wordpress.org/support/plugin/feedzy-rss-feeds/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/feedzy-rss-feeds/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/feedzy-rss-feeds/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [oichinokata](https://wordpress.org/support/users/oichinokata/)
 * Last activity: [9 years, 2 months ago](https://wordpress.org/support/topic/thumbnail-sizes-are-missing-including-patch-code/#post-8835716)
 * Status: resolved