[wp-trac] [WordPress Trac] #26856: adjust background size Twenty Thirteen header image(s) with media query

WordPress Trac noreply at wordpress.org
Fri Jan 17 04:06:47 UTC 2014


#26856: adjust background size Twenty Thirteen header image(s) with media query
-------------------------+-----------------------------
 Reporter:  senlin       |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Themes       |    Version:  3.8
 Severity:  normal       |   Keywords:
-------------------------+-----------------------------
 Although I realise that there are a few similar tickets already,
 [https://profiles.wordpress.org/obenland @obenland] recently suggested on
 [http://wpti.ps/functions/mobile-optimized-twenty-thirteen-header-
 image/#comment-25202 my blog] to open a ticket for this.

 In the file `inc/custom-header.php` I suggest to add media queries for two
 breakpoints, 360px for smartphones and 768px for tablets.

 For these two media queries I have made the background-size 1px bigger
 than the query. I am not entirely sure whether I should or not, my
 reasoning merely is the fact that the highest breakpoint is 1599px and the
 minimum image width is 1600px; I could be completely wrong about this, so
 please correct me if that is the case.

 Gist of file: https://gist.github.com/senlin/6380825#file-custom-header-
 php-L66-L79

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


More information about the wp-trac mailing list