Home Forums WoodMart support forum How add video in product page near the image gallery?

How add video in product page near the image gallery?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #613250

    av_admin_1984
    Participant

    Hi
    I upload mp4 video in image gallery but it wont show in front
    what should I do?
    thanks

    #613267

    av_admin_1984
    Participant

    I used this code in child theme

    // Disable new WooCommerce product template (from Version 7.7.0)
    function restored_reset_product_template($post_type_args) {
        if (array_key_exists('template', $post_type_args)) {
            unset($post_type_args['template']);
        }
        return $post_type_args;
    }
    add_filter('woocommerce_register_post_type_product', 'restored_reset_product_template');
    
    // Enable Gutenberg editor for WooCommerce
    function restored_activate_gutenberg_product($can_edit, $post_type) {
        if ($post_type == 'product') {
            $can_edit = true;
        }
        return $can_edit;
    }
    add_filter('use_block_editor_for_post_type', 'restored_activate_gutenberg_product', 10, 2);
    
    // Enable taxonomy fields for woocommerce with gutenberg on
    function restored_enable_taxonomy_rest($args) {
        $args['show_in_rest'] = true;
        return $args;
    }
    add_filter('woocommerce_taxonomy_args_product_cat', 'restored_enable_taxonomy_rest');
    add_filter('woocommerce_taxonomy_args_product_tag', 'restored_enable_taxonomy_rest');;

    it will change the interface of product to Gutenberg so we can use many items in product page, and in this part we loos the video section …
    I read this https://xtemos.com/docs-topic/product-video/
    this is not working in Gutenberg mode at all

    can you help me in this?
    thanks

    #613707

    Luke Nielsen
    Keymaster

    Hello,

    We checked your custom code and found that it forces the editor to switch to Gutenberg. This causes custom metaboxes from both our theme and WooCommerce to work incorrectly. Please note that the correction of such customizations is not part of our standard support

    Let me know if you have any questions.

    Kind Regards

Viewing 3 posts - 1 through 3 (of 3 total)