[wp-trac] [WordPress Trac] #48532: Sometimes image at the top of a page is not showing up in the editor

WordPress Trac noreply at wordpress.org
Wed Apr 22 16:51:34 UTC 2020


#48532: Sometimes image at the top of a page is not showing up in the editor
-----------------------------+------------------------------
 Reporter:  cube1us          |       Owner:  (none)
     Type:  defect (bug)     |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Editor           |     Version:  5.2.4
 Severity:  normal           |  Resolution:
 Keywords:  has-screenshots  |     Focuses:
-----------------------------+------------------------------

Comment (by sabernhardt):

 @cube1us Yes, it may be on pages, but your site has support for adding
 post-thumbnails (featured images) to pages. That support is likely
 included in a plugin, or maybe in your (child) theme.

 This is the example page's featured image markup:

 {{{
                 <div class="post-thumbnail">
                         <img width="480" height="640"
 src="https://www.computercollection.net/wp-
 content/uploads/2019/06/pdp12-8.jpg" class="attachment-post-thumbnail
 size-post-thumbnail wp-post-image" alt=""
 srcset="https://www.computercollection.net/wp-
 content/uploads/2019/06/pdp12-8.jpg 480w,
 https://www.computercollection.net/wp-
 content/uploads/2019/06/pdp12-8-225x300.jpg 225w" sizes="(max-width:
 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 60vw, (max-width:
 1362px) 62vw, 840px" />  </div><!-- .post-thumbnail -->
 }}}

 The theme's header image is inserted on all pages and posts, linking to
 the home page, and the featured images are unique to any pages/posts that
 have one assigned.

 If you don't see the "Featured image" section in the sidebar under
 "Document" settings, you may need to:
 1. Click on the three-dot icon to expand that menu,
 2. Select "Options" at the bottom and
 3. Make sure "Featured image" is checked.

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


More information about the wp-trac mailing list