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?
- Check if a string has a certain piece of text [duplicate]
- How to convert a string to an integer in JavaScript?
- How do I make the first letter of a string uppercase in JavaScript?
- window.location.href and window.open () methods in JavaScript
- How to create an associative array in JavaScript literal notation
- Include another HTML file in a HTML file
- Cannot open local file – Chrome: Not allowed to load local resource
- How to read a local text file?
- Compare dates with javascript
- Javascript Uncaught SyntaxError: Unexpected identifier
- “document.getElementByClass is not a function”
- forEach is not a function error with JavaScript array
- Short circuit Array.forEach like calling break
- Bootstrap Dropdown menu is not working
- String.prototype.replaceAll() not working
- How do I format date in jQuery datetimepicker?
- Express Render not working return error: No default engine was specified and no extension was provided
- Remove Object from Array using JavaScript
- Angular4 – No value accessor for form control
- What is the difference between ( for… in ) and ( for… of ) statements?
- TypeError: Cannot read property “0” from undefined
- How to use npm jquery module?
- Jquery swipe left or right on mobile
- NodeJs : TypeError: require(…) is not a function
- Sort array by firstname (alphabetically) in Javascript
- Sorting arrays in javascript by object key value
- How do I get an element to scroll into view, using jQuery?
- Uncaught SyntaxError: Unexpected token :
- Objects are not valid as a React child. If you meant to render a collection of children, use an array instead
- Error: ENOENT: no such file or directory, stat ‘/public/main.html’ at Error (native)
- How does AJAX work?
- How to remove all duplicates from an array of objects?
- Finding the average of an array using JS
- Creating a div element in jQuery
- e.target.value on an input field ReactJs, how does it work?
- How do you convert a JavaScript date to UTC?
- Why is jquery show() not working in example
- console.log showing contents of array object
- How can I use jQuery to run MySQL queries?
- Using setTimeout on promise chain
- Regular Expression to reformat a US phone number in Javascript
- One liner to flatten nested object
- Positioning element at center of screen
- Get hours difference between two dates in Moment Js
- JQuery Number Formatting
- How to add jQuery in JS file
- Get query string parameters url values with jQuery / Javascript (querystring)
- Add JavaScript object to JavaScript object
- trying to enqueue script in wordpress
- WordPress Errors? Update Failed! data.min.js
- Use useSelect/useDispatch instead of withSelect/withDispatch
- Load script after block is inserted
- Trouble adding JavaScript in visual editor (Sharpspring embed code)
- How to set translations in javascripts for my plugin?
- Google PageSpeed Enable Compression isn’t working?
- How can I add Javascript in the header of all post pages and only post pages
- wp_enqueue_script not loading my custom js file
- Add captcha validation to my custom form for Frontend posting
- AddThis Sharing Bar Not Displaying on Custom Page Template – JS conflict?
- Add JavaScript-Library “Fitty” to WordPress
- Access checks with custom REST endpoints and backbone
- Inserting javascript file into theme template?
- jQuery + more won’t load in header
- JavaScript errors
- WP REST API – “rest_user_cannot_view” ONLY on specific users
- Uncaught ReferenceError: tippy is not defined
- How to add a new attribute to core wp block editor without npm?