If the script is enqueued using wp_enqueue_script
(as it “should” be) then you can modify the tag directly with a find and replace match to fix this using the script_loader_tag
filter:
add_filter('script_loader_tag', 'custom_https_fix', 10, 2);
function custom_https_fix($tag, $handle) {
$match="jquery.script.js"; // replace with actual script filename
if (strstr($tag, $match)) {$tag = str_replace('http://', 'https://', $tag);}
return $tag;
}
Related Posts:
- jQuery $(this) keyword
- JavaScript error (Uncaught SyntaxError: Unexpected end of input)
- Disable button in jQuery
- JavaScript error (Uncaught SyntaxError: Unexpected end of input)
- $.ajax – dataType
- How can I get the ID of an element using jQuery?
- How do you select a particular option in a SELECT element in jQuery?
- How to use jQuery qTip?
- Installing jQuery?
- Email validation using jQuery
- Wildcards in jQuery selectors
- jQuery: How can I create a simple overlay?
- XML Parsing Error: not well-formed in FireFox but good in Chrome
- jQuery get value of selected radio button
- How to make Bootstrap carousel slider use mobile left/right swipe
- javascript function wait until another function to finish
- Clear form fields with jQuery
- How to use radio on change event?
- Adding a page loader using jQuery
- How can I change the text color with jQuery?
- How to get mouse position in jQuery without mouse-events?
- Show div #id on click with jQuery
- How can I change CSS display none or block property using jQuery?
- ajax stopped working when not logged in?
- Is there a way to enable Cross-Origin Resource Sharing for WordPress’ ajaxurl?
- How to get attachment id as soon as it is uploaded through media uploader in jquery?
- Using ‘$’ instead of ‘jQuery’ in WordPress
- AJAX call returns 0
- Automatically decrease font size for long words
- Is it possible to get the logged in username in a jquery script?
- Gravity Forms loading jquery
- Extend 3.5 media uploader plugin to change button name
- Any good lightbox-like option that works in WP 3.2.1?
- Javascript included but alert() function not working
- Adding fields to the media uploader with jquery listeners
- Bind to WPSetAsThumbnail
- How do I activate jQuery/script on demand?
- How to delete post attachments when jQuery is used with a click event on the delete link
- Ajax pagination works only first and third time
- Using multiple versions of jQuery while still calling it like WP likes
- adding google event tracking to links in posts
- how can I make $ work in wordpress for jQuery?
- WordPress Jquery Fade in, Fade out effect
- Override default jquery ui library with newer version
- Can I make simple global tooltips in WordPress?
- WordPress Jquery Confliction with Plugin
- Periodically getting jQuery “…. is not a function” errors [closed]
- Gutenberg Filtering Metaboxes by Post Format
- Unwanted content in website title
- HTML editor accessing quicktag buttons
- Error when posting comment form: The error is TypeError: e[h] is not a function
- How to use datepicker.min.js?
- Using Javascript to detect keypress event in text editor
- videopress videos are not displayed when loading the content with ajax in a lightbox
- Bypass nonce value while trashing a post
- How to enqueue jquery in admin and why is it not already there?
- Call a javascript function from another file
- Adding JS to one page
- Set TRUE or FALSE based on a wp_localize_script option value
- Display posts from another site using REST API in an asynchronous manner
- Simplest ajax form not working when it should
- How do I include javascript/jquery image resizing with wordpress?
- Changing WordPress URL breaks some jquery functions
- Extend the twentyten dropdown menu with jQuery with a delay onmouseout
- Loading a newer version of jQuery within WordPress
- WordPress 3.1 makes my drop down menu dissapear, jquery dont work
- Having trouble setting / modifying cookies
- Notice-Updated div moving around unprompted
- How to display comments length
- Adding JavaScript file in Admin Panel
- How to change the text of the “You are about to permanently delete these items…” alert message when deleting media from the media library?
- Jquery contact form to send mail to admin [closed]
- Can user meta be shown or hidden depending on user logged in status?
- Screen Options JavaScript Code
- Is there some jQuery conflict here?
- Getting jQuery AJAX to work in WordPress (getting -1)
- Theme has superfish – how to add supersubs?
- Absolute path to stylesheet_dir/images/my_img.jpg does not work?
- Which hook to use when adding ajax to viewer-facing side?
- jquery bookmark links
- WordPress and Modal Popup – how to make the already loaded javascript assets available in modal?
- Theme style overrides the plugin style
- Storing current page WP list table HTML data into a PHP variable
- jQuery .html rendering [closed]
- Special Characters and Spaces are not transferred correctly via AJAX call.
- How to manipulate elements on the Insert Media Attachment settings popup
- Site images are fixed in front of my site content [closed]
- jQuery not working for media uploader
- Adding text to links when not on the homepage
- how to remove/exclude html coding from json file while export?
- WordPress and Raty.js
- search in jquery mobile returns blank page
- Uncaught TypeError: undefined is not a function (shortcode-box)
- Group posts by weekly or monthly
- adding the full image path to a wordpress javascript file
- Ensure an external javascript file called from plugin is loaded after jquery is called
- jQuery not working for tabs shortcode [closed]
- Why my vertical tab js code is refreshing the page continuously? [closed]
- jQuery cycle thumbnails?
- Enqueued jQuery not working