Impossible save code in widget
-
In a WP multisite installation (wp 4.8) I have used the following text enlargement / text reduction script:
Function resizeText (multiplier) {
If (document.body.style.fontSize == \ “\”) {
Document.body.style.fontSize = \ “1.0em \”;
}
Document.body.style.fontSize = parseFloat (document.body.style.fontSize) + (multiplier * 0.2) + \ “em \”;
}The top widget contains the following code:
Make the text bigger |
Reduce the textThis has worked well in a couple of years but now it’s no longer possible to save the above code in a widget. When I return to visual mode or save the widget onclick = \ “resizeText (1) \” disappears.
Thank you for tips on how to solve this problem.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Impossible save code in widget’ is closed to new replies.