[wp-trac] [WordPress Trac] #62680: YouTube embed doesn't let me add a caption

WordPress Trac noreply at wordpress.org
Fri Feb 21 07:07:06 UTC 2025


#62680: YouTube embed doesn't let me add a caption
--------------------------+----------------------
 Reporter:  bikegremlin   |       Owner:  (none)
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  General       |     Version:  6.7.1
 Severity:  normal        |  Resolution:  wontfix
 Keywords:  close         |     Focuses:
--------------------------+----------------------

Comment (by ahtishamdev):

 Replying to [comment:3 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;
 > }
 >
 > }}}

 its just all or I have to insert any other code as well?

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/62680#comment:17>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list