Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Alberto Medina

    (@albertomedina)

    Hi @nobita, the plugin ensures the viewport meta tag is present in this form:

    <meta name="viewport" content="width=device-width,initial-scale=1">

    This markup is required by AMP (https://amp.dev/documentation/guides-and-tutorials/develop/style_and_layout/responsive_design/)

    Example (site in standard mode): https://elsoberano.org

    If you are using the official AMP plugin, the viewport meta tag should be there as described.

    Thread Starter nobita

    (@nobita)

    @albertomedina

    thank reply

    Not appeare for me

    
    <meta name="viewport" content="width=device-width,initial-scale=1">
    

    This page transitional mode.

    Please check viewport tag
    https://www.tenman.info/wp3/emulsion/en/?amp

    
    <meta name="viewport" content="width=device-width">
    

    When no AMP

    
    <meta name="viewport" content="width=device-width, initial-scale=1" id="emulsion-viewport" />
    

    Thank you.

    Plugin Author Weston Ruter

    (@westonruter)

    I can see that as well. That should be OK, with the meta tag passed through without changes.

    I’m seeing the id attribute being dropped unexpectedly, although I’m not seeing the content attribute changing. We’ll investigate.

    Plugin Contributor Pierre Gordon

    (@pierlo)

    Hi @nobita, I assume you would have the emulsion addons plugin activated, since the theme recommends you install it when it detects the AMP plugin and standard or transitional mode is enabled. If that is the case, it is the emulsion addons plugin that is removing the meta tags from the page, and not the AMP plugin.

    Whenever the emulsion addons plugin detects that a page is AMP, it removes the enqueue support from the theme, which in turn will not output the meta tag:

    
    <meta name="viewport" content="width=device-width, initial-scale=1" id="emulsion-viewport" />
    

    If the viewport meta tag is not present in the markup, the AMP plugin will add a default one, as it is required by AMP (as already stated above).

    It would be best to seek support from their team to have this resolved.

    Thread Starter nobita

    (@nobita)

    Hi @pierlo

    I understand that there is a problem with the plugin code.

    Thank you for your kind description

    @westonruter

    Thank you for the great plugin

    • This reply was modified 4 years, 6 months ago by nobita.
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Content is not sized correctly for the viewport’ is closed to new replies.