Make WordPress Core

Opened 2 years ago

Last modified 2 years ago

#54985 new enhancement

Twenty Twenty-Two: Add viewport meta

Reported by: divyeshsapariya35's profile divyeshsapariya35 Owned by:
Milestone: Awaiting Review Priority: normal
Severity: critical Version: 5.9
Component: Bundled Theme Keywords: needs-design reporter-feedback
Focuses: Cc:

Description

Hello,

I am a WordPress developer and I developed many sites and custom plugins and themes.
We found that in your latest theme which is "Twenty Twenty-Two", you don't use a responsive port which is cause issues in the plugin's front-end design so, I request you please add below meta port which is perfect for all plugins and other plugins.
Because we need to add manually in our plugin with the 'wp_head' hook I hope you will add meta port.

Meta Port:
<meta name="viewport" content="width=device-width, initial-scale=1.0">

Thank you.

Change History (3)

#1 @SergeyBiryukov
2 years ago

  • Component changed from General to Bundled Theme
  • Summary changed from Regarding the responsive theme to Twenty Twenty-Two: Add viewport meta

#2 follow-up: @costdev
2 years ago

  • Keywords reporter-feedback added

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() Docs should be hooking _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.

#3 in reply to: ↑ 2 @divyeshsapariya35
2 years ago

Using the 'wp_head' hook and adding meta then it is a standard way or not?
It is helpful for me as well.

Note: See TracTickets for help on using tickets.