Captain forms: contact button disappear when using java minification
-
Unfortunately I have a problem I can’t solve. I use Captain Forms on my websites. In the header.php I implemented the following code to have a floating button sticked left on every page:
<?php if(function_exists(‘captain_form’)) echo captain_form(926558, array(‘lightbox’=>’1’, ‘text_content’=>’Kontakt’, ‘text_color’=>’FFFFFF’, ‘bg_color’=>’FF0000’, ‘position’=>’right’, ‘type’=>’floating-button’)); ?>
When I optimize Java scripts the button disappear. I already tried different things to avoid that. For example I tried to wrap an script (<script id=”anyword”>….</script> around the function and excluded this script from java script optimizations. The effect was my site only loaded the background (not more).
Could you help me how to exclude this script from java minification?
The page I need help with: [log in to see the link]
The topic ‘Captain forms: contact button disappear when using java minification’ is closed to new replies.