If anyone else comes across this, I was able to get it to work by adding the !important tag to prevent the JavaScript from making the element class visible again:
- Create the custom theme css file: /var/www/html/fop2/css/custom_theme/theme.css
- Add the following line to the file:
.mwi { display:none !important; visibility:hidden !important;}
- Save the file
- Reload the fop2 panel.