{"id":145,"date":"2016-01-28T15:57:46","date_gmt":"2016-01-28T15:57:46","guid":{"rendered":"http:\/\/www.mayerinformatics.com\/?p=145"},"modified":"2017-06-25T06:37:15","modified_gmt":"2017-06-25T06:37:15","slug":"siteorigin-features-widget-custom-icon-image-size","status":"publish","type":"post","link":"https:\/\/www.mayerinformatics.com\/?p=145","title":{"rendered":"SiteOrigin Features Widget Custom Icon Image Size"},"content":{"rendered":"<p>SiteOrgin&#8217;s Features Widget allows the user to use a custom icon image. However, the image actually used is the thumbnail of the original. This caused my icons to look very low resolution. In the Features Widget code (\/wordpress\/wp-content\/plugins\/so-widgets-bundle\/widgets\/features\/tpl\/default.php) there is a line of php<\/p>\n<pre class=\"brush: php; light: true; title: ; notranslate\" title=\"\">$attachment = wp_get_attachment_image_src($feature&#x5B;'icon_image']);<\/pre>\n<p>According to <a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/wp_get_attachment_image_src\/\">WordPress Support<\/a> the function wp_get_attachment_image_src() will return the url of the thumbnail of the image. To get it to return the full size image the line needs to be changed to<\/p>\n<pre class=\"brush: php; light: true; title: ; notranslate\" title=\"\">$attachment = wp_get_attachment_image_src($feature&#x5B;'icon_image'], $size = 'original');<\/pre>\n<p>Every time the plugin is update this line will need to be changed.<\/p>\n<p>I have submitted a <a href=\"https:\/\/siteorigin.com\/?post_type=thread&amp;p=19915\" target=\"_blank\" rel=\"noopener\">support ticket<\/a> with SiteOrigin. Hopefully they will add the ability to return the original image as a feature.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>SiteOrgin&#8217;s Features Widget allows the user to use a custom icon image. However, the image actually used is the thumbnail of the original. This caused my icons to look very low resolution. In the Features Widget code (\/wordpress\/wp-content\/plugins\/so-widgets-bundle\/widgets\/features\/tpl\/default.php) there is a line of php $attachment = wp_get_attachment_image_src($feature&#x5B;&#8217;icon_image&#8217;]); According to WordPress Support the function wp_get_attachment_image_src() will [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[6],"tags":[],"class_list":["post-145","post","type-post","status-publish","format-standard","hentry","category-wordpress"],"_links":{"self":[{"href":"https:\/\/www.mayerinformatics.com\/index.php?rest_route=\/wp\/v2\/posts\/145"}],"collection":[{"href":"https:\/\/www.mayerinformatics.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mayerinformatics.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mayerinformatics.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mayerinformatics.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=145"}],"version-history":[{"count":1,"href":"https:\/\/www.mayerinformatics.com\/index.php?rest_route=\/wp\/v2\/posts\/145\/revisions"}],"predecessor-version":[{"id":198,"href":"https:\/\/www.mayerinformatics.com\/index.php?rest_route=\/wp\/v2\/posts\/145\/revisions\/198"}],"wp:attachment":[{"href":"https:\/\/www.mayerinformatics.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=145"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mayerinformatics.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=145"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mayerinformatics.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=145"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}