You don’t want to edit core WordPress code. You don’t need to edit core WordPress code to do what you need to implement.
First, you need to study the WordPress templating (i.e. Theme) functionality. Then, you need to study Plugins and the WordPress Hooks API, including its Action Hooks and its Filter Hooks.
To do what you’re describing, you definitely don’t need to modify core files. You just need to enqueue the appropriate script library, and then execute the script in your template.
Related Posts:
- What are the benefits of using wp_enqueue_script?
- wp_register_script multiple identifiers?
- How do I enqueue(or delay loading of) tags in individual page posts?
- How/Where is editor.min.js Added to the wp-admin Post Page?
- Disable unneeded scripts in a wordpress installation
- wp_enqueue_script adds only the first script
- Insert shortcode in post editor from javascript (Visual / HTML)
- How to get value of selected page template in Gutenberg editor?
- My scripts-bundle.js file is getting sent to the browser as a stylesheet css file. Help!
- Gutenberg consume wp-json data and reflect in frontend the content
- Why is JavaScript being added to header as application/oembed?
- Variable equals another variable and then equals another variable
- On click load iframe [closed]
- Javascript asset not enqueuing with the rest
- Make a script work within a page
- JavaScript Libraries in WordPress
- Setting Variable Path to Template Directory inside Script
- Removing admin javascript
- Script widget works only in admin view but not in Public
- Uncaught TypeError: switchEditors.switchto is not a function
- Add Paypal button redirect to a specific page after completing
- Error on clicking ‘Screen Options’ tab only at Products-related editor screen(s) and for specific user
- Setting wp_enqueue_script correctly
- How can I put my own code in a wordpress page?
- Dynamically write in editor with Javascript
- adding script tag in head of specific pages
- Dequeue set-post-thumbnail.min.js
- How to integrate a different (JavaScript) editor in WordPress?
- Change color of a specific word generated by script [closed]
- I have custom html mixed with inline javascript that I want added to my WordPress site, how do I achieve this?
- CCF7 Field numbuer prefilled after Click event
- How to update the input[type=number] quantity field using custom buttons?
- How can I look at/edit what’s being sent to post.php when I hit the publish/update button?
- add_attachment hook not firing on certain devices
- How can I generate a rainbow circle using HTML5 canvas?
- What’s the difference between “{}” and “[]” while declaring a JavaScript array?
- What does “javascript:void(0)” mean?
- For-each over an array in JavaScript
- How to delete a cookie?
- What is TypeScript and why would I use it in place of JavaScript? [closed]
- How do you use the ? : (conditional) operator in JavaScript?
- Which equals operator (== vs ===) should be used in JavaScript comparisons?
- are there dictionaries in javascript like python?
- How to do associative array/hashing in JavaScript
- How to make a discord bot create an invite for every server it joins?
- ES6 Map in Typescript
- addEventListener vs onclick
- “Uncaught SyntaxError: Cannot use import statement outside a module” when importing ECMAScript 6
- How do I check if an array includes a value in JavaScript?
- JavaScript document.getElementById().value logs empty value
- How do I color a hexagonal grid such that it doesn’t have neighbors of the same color?
- How to format a JavaScript date
- What does href expression do?
- map function for objects (instead of arrays)
- Wait 5 seconds before executing next line
- Failed to load resource: the server responded with a status of 404 (Not Found)
- How to check whether a string contains a substring in JavaScript?
- Check if a string has a certain piece of text [duplicate]
- Kadane’s algorithm explained
- What is console.log?
- Dynamically creating charts of each row in an HTML table with chart.js
- Failed to load resource: the server responded with a status of 404 (Not Found)
- How to convert a string to an integer in JavaScript?
- Maximum call stack size exceeded error
- How to change CSS using jQuery?
- How to properly use jsPDF library
- How to reload a page using JavaScript
- How can I do string interpolation in JavaScript?
- Can I use complex HTML with Twitter Bootstrap’s Tooltip?
- Start script missing error when running npm start
- How do I redirect to another webpage?
- How to round to at most 2 decimal places, if necessary?
- What is VanillaJS?
- Invariant Violation: Objects are not valid as a React child
- How do I make the first letter of a string uppercase in JavaScript?
- How to handle Uncaught (in promise) DOMException: The play() request was interrupted by a call to pause()
- window.location.href and window.open () methods in JavaScript
- Invariant Violation: Objects are not valid as a React child
- What’s the difference between using “let” and “var”?
- Angular: conditional class with *ngClass
- How do I make the first letter of a string uppercase in JavaScript?
- Loop through an array in JavaScript
- How to format a JavaScript date
- What does this symbol () => mean in Javascript? [duplicate]
- How do I redirect to another webpage?
- Google reCAPTCHA V3.0 not working. “ERROR for site owner: Invalid key type”
- How to round to at most 2 decimal places, if necessary?
- Google Chrome Uncaught (in promise) DOMException while playing AUDIO
- Define a global variable in a JavaScript function
- “SyntaxError: Unexpected token < in JSON at position 0"
- How to add a class to a given element?
- Can’t bind to ‘ngModel’ since it isn’t a known property of ‘input’
- Javascript split regex question
- Cross-Origin Read Blocking (CORB)
- What is Virtual DOM?
- How can I remove a specific item from an array?
- How can a Discord bot create a hyperlink in a Discord message in an embed or in general? [closed]
- Find object by id in an array of JavaScript objects
- jQuery append() vs appendChild()
- How can I access and process nested objects, arrays or JSON?