Announcement

Collapse
No announcement yet.

Hide mailchimp popup code with condition

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Hide mailchimp popup code with condition

    I'm working on a legacy site and have added some mailchimp code for a popup subscribe form. Works fine except it is slowing down the desktop application every time it loads a page with it in. I'd like to wrap a condition around it so it is hidden while offline. i recall doing something similar a few years back with a comodo SSL on page certificate that was causing the same problem. Any help gratefully received.
    Richard Gosler
    Phoenix Digital Media Ltd
    Dorset, UK

    #2
    Use a Condition containing IsNotPreviewMode e.g:
    Code:
    <actinic:block if="%3cactinic%3avariable%20name%3d%22IsNotPreviewMode%22%20%2f%3e">
        CODE YOU WANT HIDDEN ON PREVIEW
    </actinic:block>
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      Great, thanks.
      Richard Gosler
      Phoenix Digital Media Ltd
      Dorset, UK

      Comment

      Working...
      X