[wp-trac] [WordPress Trac] #39281: [twentyseventeen] header.php forces thumbnails on all post types

WordPress Trac noreply at wordpress.org
Wed Dec 14 17:23:55 UTC 2016


#39281: [twentyseventeen] header.php forces thumbnails on all post types
---------------------------------------+-----------------------------
 Reporter:  justnorris                 |      Owner:
     Type:  defect (bug)               |     Status:  new
 Priority:  normal                     |  Milestone:  Awaiting Review
Component:  Bundled Theme              |    Version:  trunk
 Severity:  normal                     |   Keywords:
  Focuses:  ui, template, performance  |
---------------------------------------+-----------------------------
 My plugin has custom post type and custom 'single-post-type' views and
 doesn't utilize thumbnails in them. As a result layout appears broken, and
 there is nothing I can do to make the plugin compatible with
 Twentyseventeen.

 I went to have a look how WooCommerce deals with this, and it turns out
 that there is this piece of code in the style of twentyseventeen:


 {{{
 .single-product .single-featured-image-header {
     display: none
 }
 }}}

 While that does work, I don't think it's a solution. At the very least
 there has to be a filter to dynamically disable the thumbnail from
 `header.php`

--
Ticket URL: <https://core.trac.wordpress.org/ticket/39281>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list