[wp-trac] [WordPress Trac] #62680: YouTube embed doesn't let me add a caption
WordPress Trac
noreply at wordpress.org
Thu Dec 12 06:20:00 UTC 2024
#62680: YouTube embed doesn't let me add a caption
--------------------------+------------------------------
Reporter: bikegremlin | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 6.7.1
Severity: normal | Resolution:
Keywords: close | Focuses:
--------------------------+------------------------------
Comment (by usmandev000):
WordPress may have changed how captions work in Gutenberg. To add one,
insert a YouTube block for your video. Below it, add a Paragraph block for
the caption. Style it with custom CSS by adding a class like video-
caption. Customize the styling in your theme’s CSS file to make it look
like traditional captions.
{{{#!php
<?php
.video-caption {
font-size: 0.9em;
color: #666;
text-align: center;
margin-top: 5px;
}
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62680#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list