• Skip to content

StudioPress

Customer Portal

  • Genesis Pro
  • Blocks
  • Custom Blocks
  • Framework
  • Themes
  • Hosting
  • Agencies
  • Login
Get Help / Code Snippets / Head Section /

Add Custom Viewport Meta Tag

Unless otherwise indicated, the code snippet should be placed into your theme’s functions.php file.

The Viewport meta tag is enabled by default. You can use the code below to filter it on your site, if desired. The default values are shown:

Ready to get started? Create a site or shop for themes.

Explore Genesis ProductsGenesis + Hosting

Footer

StudioPress

© 2022 WPEngine, Inc.

Products
  • Genesis Pro
  • Blocks
  • Custom Blocks
  • Framework
  • Themes
  • Hosting
  • Agencies
Company
  • Brand Assets
  • Terms of Service
  • Acceptable Use Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Developer Documentation
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble