Skip Navigation

[Resolved] jquery file location

This support ticket is created 4 years, 3 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 6 replies, has 2 voices.

Last updated by columD 4 years, 3 months ago.

Assisted by: Shane.

Author
Posts
#1789477

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!

#1789603

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

#1790413

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!

#1790485

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

#1790703

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!

#1790737

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

#1793499

My issue is resolved now. Thank you!