[Support request] Header & Footer Code?

Home Forums Support [Support request] Header & Footer Code?

Home Forums Support Header & Footer Code?

  • This topic has 3 replies, 2 voices, and was last updated 2 months ago by David.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2003072
    Bernhard

    Does the Generate Press Theme support a general Header & Footer Code implementation for posts and pages?

    I would need to add the following code to every single post:
    <meta name=”viewport” content=”width=device-width, initial-scale=1.0″>

    If this is not supported, is there any plugin suggested that works flawlessly with generate press?
    Or any other suggestions and best practices to get this done?

    Thank you very much!

    #2003103
    David
    Staff
    Customer Support

    Hi there,

    You don’t need to do anything – GP adds the viewport meta automatically.

    #2003116
    Bernhard

    well, that’s strange. I was just running a test, and added with a Header plugin this code.
    When the plugin is active, I can see the google test result as okay.

    If I de-activate the plugin (and therefore the code is removed from the header) I get the warning message from google, that my site is not mobile-friendly.

    That means… somehow.. that line of code doesn’t seem to be read just by using the theme on its own?
    I deactivated also other plugins, just to make sure.. that’s the source.

    #2003143
    David
    Staff
    Customer Support

    See here:

    2021-11-13_17-40-32

    the top highlighted one is the one added by the Theme. Which is correct.

    The second is i assume from the plugin you added – and that is not correct – you can see additional "" quotes in the attributes which is not valid.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.