Make WordPress Core

Opened 3 years ago

Closed 6 months ago

#54985 closed enhancement (worksforme)

Twenty Twenty-Two: Add viewport meta

Reported by: divyeshsapariya35's profile divyeshsapariya35 Owned by:
Milestone: Priority: normal
Severity: critical Version: 5.9
Component: Bundled Theme Keywords: reporter-feedback close
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 (5)

#1 @SergeyBiryukov
3 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
3 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
3 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.

#4 @karmatosed
6 months ago

  • Keywords close added; needs-design removed

I am also in the same situation as @costdev unfortunately @divyeshsapariya35 where reproducing this isn't something I am able to do. This means for now I am going to recommend we close this by adding a keyword.

If you are able to still reproduce please do provide some additional context in steps and we can look at it again together. Thanks for your collaboration so far.

#5 @karmatosed
6 months ago

  • Milestone Awaiting Review deleted
  • Resolution set to worksforme
  • Status changed from new to closed

For now, let's close as works for me as that is the situation and no other feedback has been raised.

Note: See TracTickets for help on using tickets.