Archived topic
Header & Footer Code?
3 replies · Started by Bernhard on November 13, 2021
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!
Hi there,
You don't need to do anything - GP adds the viewport meta automatically.
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.
See here:
https://www.screencast.com/t/z3uy4hLwi
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.