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

WordPress Trac noreply at wordpress.org
Thu Dec 12 06:26:28 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):

 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;
 > }
 >
 > }}}

 Before trying this I think you should try this Here's a screenshot for the
 same - https://i.postimg.cc/Y9sNNDPF/Screenshot-2024-12-12-at-09-59-57.png
 from @abcd95.

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


More information about the wp-trac mailing list