Archived topic
No permission to save a wp_head hook
7 replies · Started by Javier on July 5, 2021
Hello,
I am updating my website imaginaisladepascua.com to Generatepress them. But I just realized that I did not include the scripts and tracking codes for Google Analytics and others. I think the correct way to do it in GeneratePress is using Hooks. Well, I have pasted the code I had in my former Wordpress theme in the wp_head hook. But when I wanto to save it, I receive a white scrren with the message: "Forbidden You don't have permission to access this resource."
Could you help me to fix this problem, please? Thank you very much.
Hi there,
Are you using an admin account to add the code?
Do you mean an Wordpress admin account?
Yes. Make sure you are the admin of the site.
This article might be worth a look at all:
https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-403-forbidden-error-in-wordpress/
Yes, I am the admin of the site. It is strange because I have added a hook for wp_footer without problems. What can be the problem?
I'm not sure unfortunately. The theme itself doesn't have the capability to deny permissions.
Any security plugins? Please check with your hosting support as well.
Ok, I will check with my hosting support. By the way, in my former wordpress theme there was a place to insert the Asynchronus Analytics code. Where could I insert this code in GeneratePress? Maybe in the wp_footer?
Does the code provide some instructions on where it should be added?