Hello,
To add the additional tag “ along with the existing viewport tag, you can follow these steps:
-
Locate your theme’s functions.php
file or create a rank-math.php
file in the path /wp-content/themes/theme-name/rank-math.php
using FTP or cPanel File Manager.
-
Open the functions.php
or rank-math.php
file and add the following code snippet:
/**
* Add additional viewport meta tag.
*/
function add_additional_viewport_tag() {
echo '';
}
add_action( 'wp_head', 'add_additional_viewport_tag' );
- Save the changes to your file.
By adding this code snippet, you will include the additional viewport meta tag “ on your website.
If you encounter any issues or need further assistance, please feel free to ask.
Thank you for reaching out!
Sources:
Open Graph Meta Tags » Rank Math
Why Google Displays URL Instead of Site Name in SERP? » Rank Math
This is an automated reply from Rank Math Support Bot. Your ticket has been assigned to a human agent and we will get back to you shortly.
I want to add an existing meta file.
Available : <meta name=”viewport” content=”width=device-width, initial-scale=1″>
In addition ; <meta name=”viewport” content=”width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0″ />
I want to add
@Princess Do you have any ideas?
Hello,
Please note that the viewport meta tag is not controlled by Rank Math.
If you want to modify it, we suggest getting in touch with your theme provider for assistance.
Looking forward to helping you.