I would download the jquery.mixitup.min.js and place it in the same folder as your custom script (js), also makes sense to place the “main.js” file in there also, keeping your js together, if you can.
Not sure if your using a child theme or not,if not but add the following to your functions file, overwriting your original code:
add_action( 'wp_enqueue_scripts', 'add_my_script' );
function add_my_script() {
wp_enqueue_script('jquery');
wp_enqueue_script( 'custom-script', get_template_directory_uri() . '/js/custom.js',array(), '1.0.0',false );
wp_enqueue_script( 'projects', get_template_directory_uri() . '/js/main.js',array(),false,false );
}
Related Posts:
- JSON parsing error syntax error unexpected end of input
- How to enable CORS in flask
- Change Placeholder Text using jQuery
- Set selected option of select box
- JavaScript console.log causes error: “Synchronous XMLHttpRequest on the main thread is deprecated…”
- how to loop through JSON array in jQuery?
- jQuery – how to write ‘if not equal to’ (opposite of ==)
- Get element type with jQuery
- jQuery onclick toggle class name
- How can I create a “Please Wait, Loading…” animation using jQuery?
- $.focus() not working
- Adding jquery and thickbox to WordPress theme
- WooCommerce single product edit flexslider settings
- jquery & ajax getting data to php in wordpress
- AJAX returns response 0
- Hacking TinyMCE for better usability (shortcodes and html)
- WordPress Featured Post Slider
- possible to make sections in theme customizer sortable and saveable at publish button clicked?
- Twitter Bootstrap Use Collapse in Custom Post Type
- wp_head() remove redundant scripts?
- How disable checkbox when listbox value changes in tinymce
- Enqueue jQuery in WordPress
- Installing jQuery plugin to wordpress theme (Incredible)
- How do I get my page to load the jQuery UI Effects library?
- Modify this loop to fit my jQuery slider (slides)
- validate a metabox based on the category that is selected
- How to add unique image class to WordPress
- wp_mail very slow
- Jquery conflict
- Clicking on disabled ‘add to cart’ button [closed]
- Accept AJAX call with serialized form data
- WordPress loads Jquery Automatically – is my idea correct to add it to the footer?
- Unable to uncheck checkbox with jquery in wp admin
- How to use “show more” on a page or post to show and hide content
- Front-end Ajax File Upload
- Enqueue WordPress jQuery after it’s been deregistered by a plugin
- jQuery ajax call throws an HTTP 302
- Multiple jQuery conflict unsure of why
- Custom Theme Design: do I need to “enable” jquery/javascript libraries?
- Jquery not working on mobile browser
- “TypeError: ((n.event.special[g.origType] || {}).handle || g.handler).apply is not a function” error from jquery.js?ver=1.12.4-wp library
- Sorting widget control
- Advanced Ajax Page Loader (AAPL) blocks resources
- Dukapress jQuery(“form.product_update”).livequery is not a function [closed]
- Cannot enqueue jQuery correctly using Google CDN
- How to use jQuery in WordPress 5.7+
- Why doesn’t my very simple jQuery work?
- jQuery accordion plugin won’t work once used in WP
- Why use admin-ajax.php when loading pages through AJAX?
- Insertng HTML and jQuery into a page that uses the Defaut template
- WP Rest Api / Ajax POST not working when not logged in
- Admin side jquery is not loaded
- “JQMIGRATE: Migrate is Installed” How do I find the problem code? [duplicate]
- Referrer URL with jQuery or Javascript – Cache & Referrer URL Issue
- Ajax Validation for reCaptcha
- Sorting WP Auctions by date/price?
- include shortcode values in Thickbox form
- WordPress jQuery crash [closed]
- oEmbed Video in Modal
- Change shortcode value by jquery in WP Editor
- How do I get my suggest to only suggest one taxonomy?
- AJAX Success Function using JS substr() fails in WP 4.1 vs 4.0
- Using Jquery submit with ajax request
- Adding Widgets to Masonry Layouts Correctly – jQuery &&|| PHP
- wordpress before or after javascript problem
- Ajax page load in wordpress the right way?
- How to remove jquery migrate on selected posts
- Theme JQuery inlcusion on WordPress 6.0 always fails
- wp not defined at wp.Uploader.prototype
- How to update WordPress jQuery version?
- Version of jQuery In WordPress Failing Security Audit
- jQuery UI Accordion loading very slow
- I am trying to Implement a Code that is Working in my previous page but not working in WordPress for some reason
- Slide toggle Jquery UI
- How to use $ with externally loaded javascript
- Getting click on item to open closest relevant element (popup) with jQuery
- jQuery function not working in WordPress but works in jsfiddle
- wordpress ajax upload media not working
- how to do display: block after user login
- jQuery UI Tooltip position on dashicon
- Jquery not loading / running on WordPress home page
- How to get this jQuary script working?
- jQuery no conflict
- Youtube Iframe Api play one video at a time
- Possibility of creating a folder in the wordpress root install and installing a file there, all via plugin?
- Disable drag metaboxes, create many functions using js not to work!
- value not saving in the form when dynamically creating an input
- Create thumbs/gallery from custom fields
- wordpress plugin setting page not enqueueing jquery?
- Can’t figure out why a jquery file is not loading!
- Scripts only working on home page
- Customize wp-admin form custom fields
- jQuery ajax empty exeption on wordpress
- Ajax Query returns zero
- Why I am getting double jquery?
- ACF link withing website is good, but not external link?
- Does anyone know how to load jquery in the footer?
- Use WordPress Built In Jquery
- Contact Form 7 – Submit Form not working After Ajax Request [closed]
- Making the Google Maps API non readable