How to add simple inline Javascript code to Widget in Footer
-
I use the following in pages to help with email address obfuscation and I enter it using the text editor and it works fine. (see at end)
I am in Customizing Footer > Widget Area 1, clicked Add Block, selected code and entered my code where it said “Write code…”.
But the code is not executed and just displays are text.‘<p><script language=”javascript”>
<!–
var contact1=”xyz”
var contact2=”@xyz”
var contact3=”.com”
var email=”xyz”
var emailHost=”xyz.com”
document.write(““+ contact1 + contact2 + contact3 + ““)
//–>
</script></p>`
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘How to add simple inline Javascript code to Widget in Footer’ is closed to new replies.