[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:38 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):

 Another one: If the caption option is missing, switch to a Custom HTML
 block. Add the video using the iframe embed code and include a caption
 below it. Example:


 {{{
 <div>
     <iframe src="your-video-url"></iframe>
     <p class="video-caption">Your Caption Here</p>
 </div>

 }}}
 Add CSS for .video-caption to style it as needed.

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


More information about the wp-trac mailing list