Site logo

Archived topic

Add to header

15 replies · Started by Patrik on February 26, 2020

Viewing posts 1–15 of 16

Hi,
Im implementing a GDPR Cookie Concent plugin: secureprivacy.ai
Maybe good to know: Running Wordfence

They are telling me to add a script after the header section.
Im adding this to my header.php file following this guide:
https://knowledgebase.secureprivacy.ai/article/26-how-to-add-automated-blocking-script-on-your-website
But when i trying to enter my site it kind of "freezes" and the popup doesnt show.

Should this be any issues? Im a editing the wrong file?

Many thanks,
Patrik

Many thanks,
Is it somehow possible to force it to appear directly after <head>?
So:
<!DOCTYPE html>
<html lang="en-US">
<head>
<script type="text/javascript" src="https://app.secureprivacy.ai/script/5e56ea......js"></script>
<meta charset="UTF-8">
<link rel="profile" href="https://gmpg.org/xfn/11">
<title>Informator – Informator</title>

Hi Leo,
Thank you!
Actually it must be here, its a cookie concent plugin and this scripts needs to be here so im 100% it auto disables all cookies and stuff automatically
Here: https://prnt.sc/r8p18v

So i really dumb question now, will this replace the active "website" somehow?
Should i search for a file called header.php?

Ill put it with the wp_head and you will see where it shows :)
give me 2 min

Try using priority 1 and see if that's better.

So i did this:
https://prnt.sc/r8p925
- Not quite sure why its red?

Original script is wrote:
<script type=”text/javascript” src=”https://app.secureprivacy.ai/script/5e56ea……js”></script>

And it ends up here, its at the end:
https://prnt.sc/r8pb9k

Yeah, sad it doesnt work because I dont know nothing about code haha!
Allright, so are you able to quickly tell me where your theme has child theme folder?

And in that folder i place this php file?
Will this overwrite existing code and stuff?
Cause somehow i got bunch of code there

Thanks Leo,
Is the link for your documentation correct?
Because it seems like it not working

Also seems like all profile pictures are gone here in forum

Sorry, my ISP had as you sad technical problems.
So if i copy and paste that header.php will it overwrite all the other code?

This archived topic is closed to new replies.