Site logo

Archived topic

Google Authorization Code in section

1 reply · Started by Jan on January 22, 2019

Viewing posts 1–2 of 2

Hi,
I need to add the Google Autorization Code (Search console) in the <head> section of my front page and before the <body> section.
How to do thie when I see no way to edit the plain html version of my homepage, not with the WP Classic editor, nor the Elementor (Pro) editor.

Hi there,

you can use the GP Hooks Element:

https://docs.generatepress.com/article/hooks-element-overview/

You will need to create two separate hooks:
1. For your <head> code choose the wp_head hook
2. For your <body> code choose the before_header hook

For both of them you want to set the Display Rules to Entire Site.

This archived topic is closed to new replies.