Meta tag issue?

#792955
  • Hi;
    <meta name=”viewport” content=”width=device-width, initial-scale=1″>

    How can I add “maximum-scale=1.0” tag in addition to this tag?
    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello,

    To add the additional tag “ along with the existing viewport tag, you can follow these steps:

    1. 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.

    2. 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' );
    1. 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.

Viewing 4 replies - 1 through 4 (of 4 total)

You must be logged in to reply to this ticket.