This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 8 replies, has 3 voices.

Last updated by daanP-2 1 month, 3 weeks ago.

Assigned support staff: Raja Mohammed.

Author Posts
August 27, 2019 at 10:50 am #4465387

daanP-2

I am trying to: dequeue the google-recaptcha script on several pages. It is working on the .nl version, however, not on the .com version.

I use this script to dequeue the pages in my functions.php

add_action('wp_print_scripts', function () {
//Add pages you want to allow to array
if ( !is_page( array(1068, 7099, 8088, 7075, 7455, 7457, 7460, 1959, 1208, 6171, 6216, 8210, 8136, 8143, 8216) ) ){
wp_dequeue_script( 'google-recaptcha' );
//wp_dequeue_script( 'google-invisible-recaptcha' );
}
});

August 27, 2019 at 12:02 pm #4466191

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

Timezone: America/Montevideo (GMT-03:00)

Hello,
Thank you for contacting WPML support.

It seems -unfortunately- that for now you need custom programming work which is beyond the scope of our support.

At this point I would suggest you consider contacting one of our certified partners from this link:
http://wpml.org/documentation/support/wpml-contractors/

Before doing so please have a look also here:
http://wpml.org/documentation/support/wpml-contractors/guidelines-for-people-looking-for-consulting-help/

You will get the custom assistance you need to get on with your project.

Kind regards,
Carlos

August 27, 2019 at 12:04 pm #4466229

daanP-2

Hi Carlos,

Thanks for the reply. Could you please explain however? I am simply trying to achieve some things on both (or all) languages of my site what basically is what WPML offers.

August 27, 2019 at 12:16 pm #4466379

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

Timezone: America/Montevideo (GMT-03:00)

Hi,

I will do my best to help you here, but please keep in mind that this functionality is not within WPML, which means that is out of our scope as a support service and therefore my best recommendation is to contact one of our certified partners.

Getting back to the code: all the pages IDs corresponds to pages in both languages?

Regards,
Carlos

August 27, 2019 at 12:17 pm #4466381

daanP-2

Hi Carlos,

Yes they do! Please see this thread where I was chatting with your colleague https://wpml.org/forums/topic/dequeue-script-not-working/ for more information.

August 27, 2019 at 12:28 pm #4466453

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

Timezone: America/Montevideo (GMT-03:00)

Hi,

I will re-assign this ticket to my colleague Raja because he already knows the issue and a solution might came out faster.

Thank you very much for your understanding!
Regards,
Carlos

August 27, 2019 at 1:01 pm #4466875

daanP-2

Thanks!

August 27, 2019 at 1:44 pm #4467357

Raja Mohammed
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hi again,

I checked your site again, It seems like your code is working now did you make any changes? I don't see the ReCaptcha in the English site hidden link which used to be there while you have raised the issue in chat.

Let me know if you need further assistance.

August 27, 2019 at 1:56 pm #4467451

daanP-2

I've no idea how, maybe caching, perhaps related to Recaptcha itself. However, the problem is indeed fixed. Thanks for the help guys.