We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36723
    • 94 Posts
    Yes I made sure to remove the comment for that. I ended up just doing a JavaScript include. I am running modx 1.01 not 1.02 not sure if that would make a difference?
      • 8883
      • 59 Posts
      Hey,
      had the same problem. Unfortunately the plugin above didn’t worked for me too.

      try this:
       $e= & $modx->Event;
      switch ($e->name) {
          case "OnWebPagePrerender":    
          $text = $modx->documentOutput;
          // search and replace empty tags in document    
               $modx->documentOutput = str_replace('].]',']]',$modx->documentOutput);
              break;    
      
              return; // stop here - this is very important. 
              break;
      }

      this worked for me