Archived topic
CSS Info showing on header
7 replies · Started by Victor on September 23, 2020
Hello.
I made some configuration on the appearance tab on wordpress and now some css text is showing on the header of my website.
Hi there,
The topic is marked as resolved.
Have you figured out?
The problem is the AMP-adsense code. I tried to paste it after the <body tag, but when I do it, I get that problem.
Have you tried using wp_body_open with a hook element?
https://docs.generatepress.com/article/hooks-element-overview/
Thank you for the response
I created the wp_body_open hook with the "whole site" rule and pasted the code. Does that mean the AMP-Adsense code is now between the <body> </body> tags?
I created the wp_body_open hook with the “whole site” rule and pasted the code. Does that mean the AMP-Adsense code is now between the <body> </body> tags?
Yes it is.
Reference: https://developer.wordpress.org/reference/functions/wp_body_open/#comment-3193
Thank you!
No problem.:D