Home › Forums › Jevelin Theme › Avoid escaping Javascript
Home › Forums › Jevelin Theme › Avoid escaping Javascript
Hello,
I tried to add some Javascript (Jevelin > Customize > Custom Code > JavaScript Code) but when I render the page, it seems HTML is escaped.
For example, this code:
for (let i=0; i<10; ++i) {
console.log(i);
}is converted to:
for (let i=0; i< ;10; ++i) { console.log(i); }
You can see < become < ;… (I add a space before the “;” to keep it)
It’s very annoying.
Any solution to avoid this?
Hi @snake_heater,
I hope you are well today and thank you for your question.
I could confirm the issue on my test site, therefore, I notified the theme developer about this so that it will be fixed.
The issue will be fixed ASAP.
In the meanwhile, you can use any of the below plugins to use javascript code on your website.
https://wordpress.org/plugins/custom-css-js/
https://wordpress.org/plugins/custom-css-and-javascript/
https://wordpress.org/plugins/css-javascript-toolbox/
Best regards,
Shufflehound team
Thank you.
I use Insert Headers and Footers instead.
You are most welcome here 🙂
The issue is resolved in the below latest version of the theme so please update the theme as described here https://support.shufflehound.com/updating-theme/
Please login to access this file
If you need services beyond standard support, we've got your back!
If you'd prefer not to handle the installation yourself or need help getting started, we'll set everything up for you.
We'll help you rearrange sections, adjust spacing, and modify the page structure to fit your needs.
More complex styling changes, theme option modifications, and third-party integrations.
If you need something that's not included in the theme, we can code it for you.
Web design services to create custom sections, pages, and blocks for your theme, plus graphics and visualizations.
Full website builds, custom theme development, or plugin creation from scratch.
We'll provide a clear quote based on what you need. No hidden fees.