• Resolved f1ss1on

    (@f1ss1on)


    I am trying to move the WooCommerce Featured Product Image metabox to the top. I have tried the following code but it doesn’t work.

    function meta_box_position() {
    remove_meta_box( 'postimagediv', 'post', 'side' );
    add_meta_box('postimagediv', __('Featured Image'),  'post_thumbnail_meta_box', 'post', 'normal', 'high');
    
    }
    add_action('do_meta_boxes', 'meta_box_position');

    Is there something special I need to do for WooCommerce?

Viewing 1 replies (of 1 total)
  • Thread Starter f1ss1on

    (@f1ss1on)

    I figured it out. WooCommerce I changed out ‘post’ with ‘product’ and it worked fine.

    Here is my new code.

    function meta_box_position() {
    remove_meta_box( 'postimagediv', 'product', 'side' );
    add_meta_box('postimagediv', __('Product Image'), 'post_thumbnail_meta_box', 'product', 'side', 'high');
    
    }
    add_action('do_meta_boxes', 'meta_box_position');
Viewing 1 replies (of 1 total)
  • The topic ‘Moving WooCommerce Product Image Metabox to Top’ is closed to new replies.