I’ve added a javascript code to my project. It should hyphenate any text that is put between hyphenate tags. I’ve successfully used this same code in other projects, so there’s nothing wrong with it. However, this particular theme that I’m now using refuses to implement it and there is only a blank space where the hyphenated text should be. The div is hidden!
This theme is Tilt by Multithemes. If I switch themes, I find that with some themes the javascript works (with most that I have) but with some themes it doesn’t. This could involve responsive behaviour but most responsive themes work just fine.
I contacted Multithemes but got no fix. I can force the hyphenated div to visibility but the javacript doesn’t take effect. Multithemes support suggested that I should place the javascript code in the end of the HTML file, just before the closing body tag. My question is, how do you do that? Within Rapidweaver I can’t see any way to manipulate HTML this way, and adding the code by hand would mean that every time I update the site the code is lost.
Any ideas? I feel it’s quite unacceptable that a theme hides user added divs and user added javascript doesn’t take effect.
Nah, placing the code in the end of the theme’s index file didn’t help. The theme hides the div still, and if I force it visible, the javascipt still doesn’t work.
I tried adding my javascript between the lines but it didn’t make a difference. I also deleted the theme.js and viewpoerchecker.js lines but that didn’t make a difference either.