Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save andreiglingeanu/795d1ac5c129471e86b5fad4f70fee9a to your computer and use it in GitHub Desktop.
Save andreiglingeanu/795d1ac5c129471e86b5fad4f70fee9a to your computer and use it in GitHub Desktop.
<?php
add_filter(
'blocksy:woocommerce:product-card:thumbnail:ratio',
function ($ratio) {
// Please change this
$my_page_id = 123;
if (is_page($my_page_id)) {
// Your custom ratio
return '1/1';
}
return $ratio;
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment