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

Creating multilingual glossary for WP

I have replaced this code from functions.php: wp_localize_script( ‘ajax-script’, ‘my_ajax_object’, array( ‘ajax_url’ => admin_url( ‘admin-ajax.php’ ) ) ); } with this: wp_localize_script(“alphabetJS”, “ajaxurl”, admin_url(“admin-ajax.php”)); Then edited javascript jQuery.post(my_ajax_object.ajaxurl, data, function(response) { with this: jQuery.post(ajaxurl, data, function(response) {

Custom Post Type slug and WPML gets 404 error

My solution is for a WordPress Installation (Version 5.2.2), for translation is only WPML Multilingual CMS (Version 4.2.7.1) installed. The modules WPML String Translation (which is very performance-consuming) and WPML Translation Management are not required. I’m using this WPML url structure: www.url.com/en/postname. My Custom Post Type should have the slug “produkte” in German, “products” in … Read more

add .html to custom post type with WPML

Aleluhia ! it was because $type don’t use WPML function Here is the code that works perfectly with WPML and translated slug : // .html pour les customs posts function rewrite_rules($rules) { $new_rules = array(); foreach (get_post_types() as $t) $new_rules[$t . ‘/(.+?)\.html$’] = ‘index.php?post_type=” . $t . “&name=$matches[1]’; return $new_rules + $rules; } add_action(‘rewrite_rules_array’, ‘rewrite_rules’); … Read more

PHP Warning adding menu

Please check the first parameter of the function stripe_tags from \wp-includes\formatting.php on line 4670. You can check the value of the parameter by using var_dump( $variable ) and if you get array then change the array to string and then pass the string in the function. You can also use the function is_array to check … Read more

Permalinks don’t update nor link properly

How are you linking to the other events? Are you hard-coding the anchor links somewhere, like in your post content or custom fields? As in, are you typing out <a href=”https://wordpress.stackexchange.com/questions/327355/example.com/?p=123″>? If so, you might have manually update all of the links you added to use the new permalinks. After you updated the permalink settings … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)