Video Attachments Settings in WooCommerce
The Video Attachments Settings allow you to showcase YouTube videos as product attachments in WooCommerce. When enabled, YouTube links open in a new browser tab and are displayed in a video-friendly layout, making it easy for customers to watch product-related videos without leaving your store.
In The Article
What Does the Video Attachments Feature Do?
This feature lets you:
- Add YouTube videos as external attachments
- Open videos in a new tab
- Display videos in a clean, embedded-style layout
- Improve product understanding with visual content
Enable Video Attachments Settings
Steps
- Go to Product Attachment → Settings
- Locate Showcase YouTube Link in New Tab
- Set the option to True
- Click Save Changes

Frontend Display on Product Page
Once enabled:
- YouTube videos appear in a video layout on the product page
- Clicking the video opens it in a new browser tab
- The product page remains open in the original tab

How to Add a YouTube Video URL
To ensure proper video rendering, always use the full YouTube URL format.
Example
https://www.youtube.com/watch?v=VIDEO_ID
Add this URL when creating a video attachment.
Customize Video Tab Title and Video Size (Advanced)
You can customize the video tab title and video size using WordPress filters.
⚠️ These filters should be added to your theme’s
functions.phpfile.
1. Change the Video Tab Title
add_filter('video_tab_title_custom', 'video_tab_title_custom_fun');
function video_tab_title_custom_fun($default_video_tab_title){
$default_video_tab_title = "Video Attachments";
// Add your custom title
return $default_video_tab_title;
}
2. Resize the Video Player
add_filter('iframe_custom_width','iframe_custom_width_fun');
function iframe_custom_width_fun($default_size){
$default_size = "200";
// Add your custom width
return $default_size;
}
Important Notes
- Works only with YouTube external links
- Videos always open in a new tab
- Uses default plugin styling unless customized
- Does not affect site performance
Conclusion
The Video Attachments Settings make it easy to add engaging YouTube videos to your WooCommerce product pages. With simple configuration and optional customization using filters, you can enhance product presentation and keep customers engaged with visual content.
FAQs
1. Can I add multiple YouTube videos to a product?
Yes. You can add multiple YouTube links as separate video attachments.
2. Will videos open inside the product page?
No. Videos always open in a new browser tab to keep your store page active.
3. Does this support platforms other than YouTube?
Currently, this feature is designed for YouTube video links only.
4. Can I change the video tab title without coding?
No. Changing the video tab title requires adding a filter in functions.php .
5. Will video attachments affect page load speed?
No. Videos load only when opened, so there is no impact on product page performance.