Do you know which file I can locate this code? I believe it's part of the WP core.
<script type="text/javascript" src="hidden link " id="jquery-js"></script>
Thank you!
Shane
Supporter
Languages:
English (English )
Timezone:
America/Jamaica (GMT-05:00)
Hello,
Thank you for getting in touch.
This file is actually located in your wordpress core in wp-includes/js/jquery/jquery.js
The file you would be looking for is called jquery.js
If you log into your site using FTP you should see the wordpress core directory.
Please let me know if this helps.
Thanks,
Shane
Hi Shane,
Thank you for your response! I want to know which file would call this jquery.js in the theme file. I couldn't find it anywhere in the header.php.
Thank you!
Shane
Supporter
Languages:
English (English )
Timezone:
America/Jamaica (GMT-05:00)
Hello,
You most likely won't find this reference in the header.php file of your theme as this jQuery is being called by wordpress core itself using the wp_head(); function.
This is what loads all the scripts that have been hooked into the header. Unfortunately I cannot say where exactly in the wordpress core the jQuery is called.
Is there a reason for wanting to find this script call ? Perhaps I can suggest an alternative if I know the reason.
Please let me know.
Thanks,
Shane
Hi Shane,
I need to assign a special css to control the cookie level.
class="optanon-category-C0001"
so that it looks like this
<script type="text/javascript" src="<em><u>hidden link</u></em>" id="jquery-js" class="optanon-category-C0001"></script>
Do you have any suggestions?
Thanks!
Shane
Supporter
Languages:
English (English )
Timezone:
America/Jamaica (GMT-05:00)
Hello,
Unfortunately no i'm not able to make a suggestion on how to add this.
This is because this is hooked into the theme from wordpress core itself which i'm not sure how to hook into this.
Perhaps what you can do is to consult with a developer on our consultants page to see if they can assist with this.
https://toolset.com/contractors/
Thanks,
Shane
My issue is resolved now. Thank you!