Add a custom field below product image

//set-up custom field first with ACF (Advanced Custom Fields)
add_action( 'woocommerce_product_thumbnails', 'custom_acf_field_under_images', 30 );
 
function custom_acf_field_under_images() {
   $custom_field = get_field( 'dimensions' );
        if ( $custom_field ) {
             echo '<div class="floating-dimensions">' .  get_field('dimensions') . '</div>';
         }
 }
No Comments

Sorry, the comment form is closed at this time.