Re: How to display the product meatfield video with control ?

How to display the product meatfield video with control ?

maniellowww
Shopify Partner
4 0 5

I'm create the video metafield to individual product. It's normally loading without  control of HTML5 video.

Following code added on liquid file
{{ product.metafields.custom.middle_video_section | metafield_tag }}

 

Please let me know any suggestion or solution

Replies 5 (5)

GemPages
Shopify Partner
5625 1262 1264

Hello @maniellowww ,

 

It's the GemPages Support Team and we are glad to assist you today!

 

Could you share the content (video code) that you added in the metafield?

 

Best regards,
GemPages Support Team

GemPages - Build any high-converting store pages for any business


- If you find my reply helpful, please hit Like and Mark as Solution
- Get connected: App Store | Blog | Community | Help Center
maniellowww
Shopify Partner
4 0 5

Hi@GemPages ,
Please refer the screenshot. We have create the product metafield.
For displaying the front end (liquild) using the {{ product.metafields.custom.middle_video_section | metafield_tag }}
Refer the following link : https://shopify.dev/docs/api/liquid/filters/metafield_tag

maniellowww_0-1680604180805.png

 

GemPages
Shopify Partner
5625 1262 1264

Hi @maniellowww ,

 

You could please try using the Multi-line text type instead of File type 

GemPages_0-1680666059322.png

 

After that, you could please enter the content like that

<video poster="" playsinline="" controls="" src="Your Video URL" width="100%"></video>

 

You can upload the video to the Shopify File to get URL.

 

Let us know how it works for you.

 

Best regards,
GemPages Support Team

GemPages - Build any high-converting store pages for any business


- If you find my reply helpful, please hit Like and Mark as Solution
- Get connected: App Store | Blog | Community | Help Center
ChristianThrige
Shopify Partner
1 0 0

Hi i tried this, however i am experience an issue where my multiline metafield data, is shown as a string. Rather than a object <video>
Found any fix for that? Thanks

ChristianThrige_0-1703244199636.png



javieralarcn10
Shopify Partner
9 2 3

Did you find a solution? I am having the same problem 😞