• Resolved 203X

    (@ryder203)


    When clicking on the opt-out links which have a button-like function for accepting or declining the cookie the link just disappears now after I updated the plugin. Happens on various sites I manage.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Thread Starter 203X

    (@ryder203)

    OK… I figured it out. The input field for the custom cookie banner does not like tags. If they are in the code, the links disappear when clicking and the script does not work as it seems.

    If you want to use the slimstat cookie banner here my code for a very nice look that is very customizable. Example is from https://fatal-ld.de .

    Add this to custom CSS of the theme theme (edit your colors and values)

    /* buttonz class */
    
    .buttonz {
      display: inline-block;
      padding: 0.5em 0.7em;
      border-radius: 4px;
      border: 2px solid #2E2E2E;
      font-weight: bold;
      letter-spacing: 0.0625em;
      text-transform: uppercase;
      background: #ED3E48;
      color: #fff;
    }
    /* button rollover */
    .buttonz:hover,
    .buttonz:focus,
    .buttonz:active {
      background: #ff6068;
      color: #fff;
    }
    

    And this into the custom cookie banner code field in the slimstat settings (edit your links and colors/values/text) [caution: there are invisible characters for spacing seen as tofu in some text editors!]

    <p style=" -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; 
    z-index: 99999; width: 100%; position: fixed; bottom: 0; margin: auto; padding: 1em; border: 0 solid; border-top: 3px solid #ED3E48;
    text-align: center; -o-text-overflow: ellipsis; text-overflow: ellipsis;background: #2E2E2E; color: #FFF; font-size: 0.9em;">
    This website loads content from external networks to optimize functions and the presentation. Furthermore various cookies are used e.g. to analyze and count visits.?
    <a href="#" class="buttonz" onclick="javascript:SlimStat.optout(event, false);"
    >OK</a>?<a href="#" class="buttonz" onclick="javascript:SlimStat.optout(event, true);">decline</a>?<a href="https://www.yourlinkytopinky/dataprivacy-bla/" class="buttonz">privacy statement</a></p>
    

    CAUTION: I am no lawyer or privacy law expert. You be warned. Use with care. I am not responsible for the settings of your website.

    • This reply was modified 6 years, 8 months ago by 203X.
    • This reply was modified 6 years, 8 months ago by 203X.
Viewing 1 replies (of 1 total)
  • The topic ‘Opt-Out Links in Cookie banner disappear’ is closed to new replies.