@Seth The problem Gravity Forms was having with the themes using the NOFORMAT or RAW shortcode functionality was any Javascript we were outputting was having <P> tags added after each line, because it was being autoformatted like text is in the rich text editor.
We solved this by making sure anytime we output Javascript we do so on a single line. Downside is the JS isn't formatted nicely so it is easily human readable as it could be a long piece of JS and with it on one line it is hard to read without manually formatting it.
Another solution that worked sometimes, although not always, was to have the user wrap our shortcode in the noformat/raw shortcode. So it would look like this:
[noformat] [gravityforms id=1] [/noformat]
But this didn't always work. It's frustrating that theme developers just use any code they find online without knowing the consequences. I know the exact article where this comes from (a CatsWhoCode.com tutorial) and I wish it was never written.
Posted 13 years ago on Wednesday December 8, 2010 |
Permalink