Category : elementor

I’m currently trying to add the image title to the slideshow media widget in elementor pro through the code attached here : jQuery(‘.elementor-carousel-image’).attr(‘id’,’slideshowImage’) var slideshowDiv = document.querySelectorAll("#slideshowImage"); for (var i = 0; i<slideshowDiv.length; i++) { var content = document.createTextNode("Title"); slideshowDiv[i].appendChild(content); } As of now it is able to show the text "Title" at the top ..

Read more

I wanna add some validation for a WordPress form made by Elementor I am pretty sure my code works well in chrome inspector and my js file enqueued in the right way var role = document.getElementsByName("role"); role[0].onclick = function() { var code = document.getElementsByName("digfcountrycode"); code[0].attributes.value = "+963" code[0].hidden = false; } role[1].onclick = function() { ..

Read more

I have placed an accordion widget on Elementor pro and then I have a button to change its content with javascript: var foo = document.getElementById("IDBOX").innerHTML; foo = foo.replace("AAA", "AAA"); document.getElementById("IDBOX").innerHTML = foo; After the button is pressed, the accordion doesn’t open anymore. The html portion before and after javascript runs is exactly the same. Source: ..

Read more