Skip Navigation

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 3 replies, has 2 voices.

Last updated by Dražen 3 months, 2 weeks ago.

Assisted by: Dražen.

Author Posts
September 9, 2024 at 11:52 am #16155956

hasanK-7

Background of the issue:
I am trying to apply a solution from this answer: https://wpml.org/forums/topic/only-include-javascript-snippet-on-1-language/ to my site hidden link. My goal is to insert JS code in the footer.

Symptoms:
My code is being inserted before the HTML Tag.

Questions:
What to do to insert the JS code in the footer?

September 9, 2024 at 12:18 pm #16156210

hasanK-7

I was able to fix the problem , by adjusting the reference solution provided by wpml and referencing this stack

https://stackoverflow.com/a/4226269

September 9, 2024 at 12:19 pm #16156211

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+01:00)

Hello,

can you explain what are you trying to achieve? Show JS script only on specific language footer?

- My code is being inserted before the HTML Tag.

Please explain before which HTML tag, and what is wrong.

Please note that while I can provide guidance and assistance with code examples, troubleshooting and further customization of custom code implementations fall outside the scope of our support.

Regards,
Drazen

September 9, 2024 at 12:20 pm #16156216

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+01:00)

Hello,

Great to hear that it's resolved now 🙂

Thank you for the confirmation.

Regards,
Drazen