[wp-trac] [WordPress Trac] #61723: Twenty Sixteen: Image Block Alignment Offset (Left/Right)

WordPress Trac noreply at wordpress.org
Mon Jul 22 16:27:50 UTC 2024


#61723: Twenty Sixteen: Image Block Alignment Offset (Left/Right)
---------------------------+-----------------------------
 Reporter:  mrfoxtalbot    |       Owner:  (none)
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  Future Release
Component:  Bundled Theme  |     Version:
 Severity:  normal         |  Resolution:
 Keywords:  needs-patch    |     Focuses:  javascript
---------------------------+-----------------------------

Comment (by sabernhardt):

 The `below-entry-meta` class can be added whether the block has some
 alignment setting (left, right or center):

 {{{
 <div class="wp-block-image">
         <figure class="alignleft size-large is-resized">
                 <img width="1024" height="512" class="wp-image-30 below-
 entry-meta" style="object-fit:cover;width:294px;height:auto" ... >
                 <figcaption class="wp-element-caption below-entry-
 meta">caption</figcaption>
         </figure>
 </div>
 }}}

 or without alignment:

 {{{
 <figure class="wp-block-image size-large is-resized">
         <img width="1024" height="512" class="wp-image-30 below-entry-
 meta" style="object-fit:cover;width:294px;height:auto" ... >
         <figcaption class="wp-element-caption below-entry-
 meta">caption</figcaption>
 </figure>
 }}}

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


More information about the wp-trac mailing list