Add a viewport meta tag on WordPress
Why it matters
Without a viewport tag, phones show the page as a tiny desktop layout. Google indexes the mobile version of your site, so a page that is not mobile-ready can rank lower.
The fix
- Active themes from the WordPress directory include the tag. If it is missing, you are probably using an old or custom theme; add the tag inside the head of header.php in a child theme, or switch to a responsive theme.
- Make sure the theme calls wp_head() in the head, so plugins can add their tags too.
header.php (child theme)
<meta name="viewport" content="width=device-width, initial-scale=1"> Related
- Reported by the SEO basics check
- Add a title to the homepage
- Add a meta description to the homepage
- Add a canonical link to the homepage
- Fix the canonical link on the homepage
- Point the canonical link at your own domain
- Add Open Graph tags for link previews
- Complete the Open Graph tags
- Make the viewport follow the device width
- Replace the default WordPress tagline in the title
- Fill in the empty part of the homepage title
- Change the canonical link to https
- Check that the canonical link names the right host
Scan your domain to see whether this applies to you.