Skip to content

Instantly share code, notes, and snippets.

@xlplugins
Created July 7, 2026 11:55
Show Gist options
  • Select an option

  • Save xlplugins/b27f0e2998e1b33e1f566e7d4c03baaa to your computer and use it in GitHub Desktop.

Select an option

Save xlplugins/b27f0e2998e1b33e1f566e7d4c03baaa to your computer and use it in GitHub Desktop.
plakatdyr fkcart image compatibility
add_filter( 'fkcart_item_image_size', function () {
return 'woocommerce_thumbnail';
} );
// 2) Remove FKCart's default card border/radius on slide-cart images (framed posters have their own frame).
add_action( 'wp_head', function () {
echo '<style id="fkcart-frame-img-clean">
#fkcart-modal .fkcart-item-wrap .fkcart--item .fkcart-image-wrapper img{border:0 !important;border-radius:0 !important}
#fkcart-modal .fkcart--item .fkcart-image-wrapper{border:0 !important;border-radius:0 !important;box-shadow:none !important;background:none !important}
</style>';
}, 999 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment