Hi everyone -
I’m trying to put a YouTube video link on the product pages under a collapsible tab. The steps that I followed are:
-
Create a Metafield with content type URL
-
Add for each product the respective YouTube URL (if there is one)
-
When I go to Customize the Product Page, I select collapsible tab, and when I click on insert dynamic source the Metafield that I created doesn’t appear
I’m using Showcase. Any advice on why the Metafields are not showing? I’ve done a ton of trial and error, and while the Metafields are showing as expected across the products when editing, they do not appear as an option when attempting to insert them as a dynamic source for a Product Page.
Thanks in advance!
Hi @kdigitalstudio
In this case I think to check and fix the problem, we need to check your code and theme customize to clear how you added the function.
Can you share the store information, then we can help you check and fix it.
Here’s a preview of the theme since the store is not active: https://rep3q7pputd9x6ep-56186404931.shopifypreview.com
When and how dynamic sources are available is determined by context , outlined in this doc
https://shopify.dev/themes/architecture/settings#dynamic-sources
Hi @kdigitalstudio
If you want to display a video on product with dynamic source using metafield.
You need to write liquid code embed the link inside IFRAME.
If you not comfortable with the code, you need to hire an expert, who can help you do that,
Or if you can share your store access, I will spend time to help you check it.
It’s not crucial for me to have the thumbnail of the video under the collapsible section. I tried using an HREF link with multi-line text, and cannot find a simple way to link YouTube videos dynamically. Is this not possible with metafields and collapsible tabs without additional coding in backend?
Based on that reference the dynamic source should appear for the collapsible tabs. Currently, only the content type “single line text” and “multi line text” (aside from product title, description, price) are available as dynamic sources for a stock template I’ve downloaded. Attempting to try any other content type (page reference as a popular example for size charts) does not work either.
Unless you want to get mired in implementation details just make the url metafield a simple text metafield instead.
Otherwise that stock template has to be modified and experimented with to see if there’s a 100% solution.