• Resolved deathstar0pth

    (@deathstar0pth)


    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]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    well, try adding captainform to the comma-separated JS optimization exclusion field maybe (that string seems to match both the linked JS as the path to the JS files contains that string as the inline JS which also contains that same string)?

    hope this helps,
    frank

    Thread Starter deathstar0pth

    (@deathstar0pth)

    Nope. adding captainform didn’t solved the problem.

    But I noticed If i keep standard settings seal.js, js/jquery/jquery.js then it works.

    Thanks for your response

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    great job @deathstart0pth, thanks for the feedback!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Captain forms: contact button disappear when using java minification’ is closed to new replies.