[wp-trac] [WordPress Trac] #54985: Twenty Twenty-Two: Add viewport meta

WordPress Trac noreply at wordpress.org
Sat Jan 29 13:17:36 UTC 2022


#54985: Twenty Twenty-Two: Add viewport meta
--------------------------------------------+------------------------------
 Reporter:  divyeshsapariya35               |       Owner:  (none)
     Type:  enhancement                     |      Status:  new
 Priority:  normal                          |   Milestone:  Awaiting Review
Component:  Bundled Theme                   |     Version:  5.9
 Severity:  critical                        |  Resolution:
 Keywords:  needs-design reporter-feedback  |     Focuses:
--------------------------------------------+------------------------------
Changes (by costdev):

 * keywords:  needs-design => needs-design reporter-feedback


Comment:

 Hi @divyeshsapariya35, welcome to Trac!

 I can't seem to reproduce this on my local system, and on a remote server.

 On both systems, Twenty Twenty-Two loads with the following viewport meta
 tag:
 {{{
 <meta name="viewport" content="width=device-width, initial-scale=1" />
 }}}

 I have tested with Twenty Twenty-Two bundled with 5.9, as well as
 installing Twenty Twenty-Two from wp.org.

 `locate_block_template()`
 [https://developer.wordpress.org/reference/functions/locate_block_template/
 Docs] should be hooking
 `_block_template_viewport_meta_tag()`[https://developer.wordpress.org/reference/functions/_block_template_viewport_meta_tag/
 Docs] into `wp_head` for block themes.

 Is the meta viewport tag missing for you on all frontend pages, or just on
 certain types of pages?

 Any extra information you can provide will be really helpful.

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


More information about the wp-trac mailing list