Help! YouTube video on the home page doesn't load
YouTube changed their API have caused some videos across free and premium Shopify themes to not play as they should. You apply this patch to fix the issue:
You'll need to edit the theme.js.liquid file, please follow the steps below:
- Locate the theme.js.liquid file. Go to Online Store> Themes> Palo Alto> Actions> Edit Code> Assets Folder> theme.js.liquid file:
- Find the code below via using "Command + F" or "Ctrl+F" for Windows:
- You'll then need to replace the lines highlighted in red below with code highlighted in green:
- Save the changes.
Note: Always make a backup before editing any theme code, this will help to restore to a stable point if an issue comes up due to changes. Here is instructions from Shopify on backing up your theme: https://help.shopify.com/manual/using-themes/theme-files#duplicate-themes