Is there a way to move WPML scripts in footer?

It depends. As commented on OP, WPML documentation and support are very minimal on this front. I found that for me, the only culprit forcing jQuery to the head of the HTML was wpml-xdomain-data.js from sitepress-multilingual-cms/classes/url-handling/class-wpml-xdomain-data-parser.php:53. This script appears to handle some part of the language switchers and, as I have a custom language switcher, … Read more

Unable to remove jquery from header and put in before body ends

jQuery is built into WordPress, so if any other enqueued script relies on it, it’s automatically loaded. To move it to the footer, you have to reregister it, like this: function my_footer_jquery () { wp_deregister_script (‘jquery’); wp_register_script (‘jquery’, includes_url (‘/js/jquery/jquery.js’), array (), NULL, true); wp_enqueue_script (‘jquery’); } add_action (‘wp_enqueue_scripts’, ‘my_footer_jquery’);

jQuery UI Tooltip position on dashicon

the simple solution to make your tip follow mouse when hover over certain element like so: $(“.selector”).tooltip({ track: true,//make tip follow mouse when hover over all element with class “selector” content: “Tooltip content here”, });

Modify the href attribute of tag dynamically in WordPress

Try this (pure JavaScript): var allBtns = document.getElementsByClassName(‘nectar-button’); function preventDefaultOpenCustomUrl(event) { event.preventDefault(); var price = document.getElementById(“fieldname9_1″).value; var url=”https://na2.docusign.net/member/PowerFormSigning.aspx?PowerFormId=df6fbf3d-6f5d-4c48-8965-f4fa810099f4&Institutional_Buyer_AnnualPrice=” + price; window.open(url); } ; for (i = 0; i < allBtns.length; i++) { allBtns[i].addEventListener(“click”, preventDefaultOpenCustomUrl); } this is adding the event to all buttons with that classname, with Jquery: (function ($) { $(‘.nectar-button’).on(‘click’, function (e) { … Read more

How to get my insert.php url in jquery?

I think you must add all the url , because if your script file is not located in the main page it will not access this url: ‘admin.php?page=insert.php’, tray to add the full url , url: ‘domain.com…/admin.php?page=insert.php’

How can I add a new lib path without call each one on the header?

function my_custom_enqueue_scripts() { if ($handle = opendir(get_template_directory() . ‘/custom-stylesheets’)) { $i = 1; while (false !== ($file = readdir($handle))) { if ($file != “.” && $file != “..”) { wp_register_style(‘custom_stylesheets_’ . $i, get_template_directory_uri() . ‘/custom-stylesheets/’ . $file); $i++; } } closedir($handle); } } add_action(‘wp_enqueue_scripts’, ‘my_custom_enqueue_scripts’); Add code to a file: functions.php Styles should be located: … Read more