{"id":4267,"date":"2022-01-28T10:16:30","date_gmt":"2022-01-28T08:16:30","guid":{"rendered":"https:\/\/creativethemes.com\/blocksy\/?post_type=documentation&amp;p=4267"},"modified":"2022-01-28T10:16:30","modified_gmt":"2022-01-28T08:16:30","slug":"change-product-reviews-featured-image-aspect-ratio","status":"publish","type":"documentation","link":"https:\/\/creativethemes.com\/blocksy\/docs\/code-snippets\/change-product-reviews-featured-image-aspect-ratio\/","title":{"rendered":"Change the Product Reviews featured image aspect ratio"},"content":{"rendered":"\n<figure class=\"wp-block-video\"><video controls src=\"https:\/\/creativethemes.com\/blocksy\/wp-content\/uploads\/2022\/01\/Screen-Recording-2022-01-28-at-10.15.01.mov\"><\/video><\/figure>\n\n\n\n<p>The following PHP snippet lets you modify the image size ratio for the featured image for the Product Reviews extension. It needs to be integrated into the functions.php file of the Blocksy child theme, or via the Code Snippets plugin. Adjust the 1\/1 ratio to whatever you wish.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>add_filter('blocksy:ext:product-reviews:gallery:ratio', function ($ratio) {\n    return '1\/1';\n});<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>The following PHP snippet lets you modify the image size ratio for the featured image for the Product Reviews extension. It needs to be integrated into the functions.php file of the Blocksy child theme, or via the Code Snippets plugin. Adjust the 1\/1 ratio to whatever you wish.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"doc_categories":[125],"class_list":["post-4267","documentation","type-documentation","status-publish","hentry","doc_categories-code-snippets"],"blocksy_meta":{"styles_descriptor":{"styles":{"desktop":"","tablet":"","mobile":""},"google_fonts":[],"version":6}},"acf":[],"_links":{"self":[{"href":"https:\/\/creativethemes.com\/blocksy\/wp-json\/wp\/v2\/documentation\/4267","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/creativethemes.com\/blocksy\/wp-json\/wp\/v2\/documentation"}],"about":[{"href":"https:\/\/creativethemes.com\/blocksy\/wp-json\/wp\/v2\/types\/documentation"}],"author":[{"embeddable":true,"href":"https:\/\/creativethemes.com\/blocksy\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/creativethemes.com\/blocksy\/wp-json\/wp\/v2\/comments?post=4267"}],"version-history":[{"count":0,"href":"https:\/\/creativethemes.com\/blocksy\/wp-json\/wp\/v2\/documentation\/4267\/revisions"}],"wp:attachment":[{"href":"https:\/\/creativethemes.com\/blocksy\/wp-json\/wp\/v2\/media?parent=4267"}],"wp:term":[{"taxonomy":"doc_categories","embeddable":true,"href":"https:\/\/creativethemes.com\/blocksy\/wp-json\/wp\/v2\/doc_categories?post=4267"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}