Replies: 1 comment
-
i'm working in a WP environment with cookie consent in a custom plugin. https://developer.wordpress.org/reference/hooks/script_loader_tag/ It just overrides the HTML markup that gets generated on the frontend.
My guess is that the script order/priority is off. This is something I can explore and gave a better answer to when I get to it in my project, in the next 2-3 weeks. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I installed the script in wordpress with something like this in function.php :
It's working, but i needed to add
type
anddata-category
to my custom script, so i tried to usescript_loader_tag
.But once i accept cookie, my script don't work even if
text/plain
has been removed automatically after accept.It's seem
script_loader_tag
don't managetext/plain
perfectly. If someone who knows Wordpress have a tip.Beta Was this translation helpful? Give feedback.
All reactions