Lighthouse – No “ “ tag found
-
I can′t resolve the problem of the missing viewport tag on my page.
I get these lighthouse messages for all my pages
– No<meta name="viewport">
tag found
– Text is illegible because there’s no viewport meta tag optimized for mobile screens.
– Tap targets are too small because there’s no viewport meta tag optimized for mobile screensI am far of beeing an expert with wordpress. But I tried to resolve the problem with inserting meta tags with the “code snippets” plugin or also to the “wp-blog-header.php” on my ftp.
I added and saved the different tags, checked in lighthouse if it works. But no matter which code i tried, lighthouse is always saying that there is no viewport tag.
I am really stucked right now. i would apreciate some help.
Here are some of the tags I tried:
{ ?> <meta name="viewport" content="width=device-width, initial-scale=1"> <?php }; add_action( 'wp_head', function () { ?> <!meta name="viewport" content="width=device-width, initial-scale=1"> <?php } ); add_action('wp_head', 'your_function_name'); function your_function_name(){ ?> <meta name="viewport" content="width=device-width, initial-scale=1"> <?php }; <!DOCTYPE html> <html lang="en"> <head> … <meta name="viewport" content="width=device-width, initial-scale=1"> … </head>
- This topic was modified 4 years ago by .
- This topic was modified 4 years ago by .
- This topic was modified 4 years ago by .
The page I need help with: [log in to see the link]
- The topic ‘Lighthouse – No “ “ tag found’ is closed to new replies.