Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124
Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124
Avrupa Birliği Genel Veri Koruma Tüzüğü standartlarına göre sitenizde bir çerez uyarısı eklemek zorunlu oldu. Google Adsense, Adwrods gibi hizmetlerden yararlanmak içinde çerez uyarısının sitenizde yer alması gerekiyor.
Bu yazımızda WordPress sitenize hiç bir eklenti gerekmeden, basit bir şekilde sadece 1 KB’lik bir kod ekleyerek responsive bir çerez uyarısı ekleyebilirsiniz.
Demo görmek isterseniz sitemizin sol alt köşesine bakabilirsiniz 🙂
<p id="cookie-notice">Web sitemizde çerezler kullanılmaktadır. Detaylar için <a href="GİZLİLİK POLİTİKASINA AİT LİNKİ EKLEYİN" target="_blank" style="color: inherit; font-weight: bold;">Gizlilik Polikası</a> sayfasını ziyaret edebilirsiniz.<br><button onclick="acceptCookie();">Kabul Et</button></p>
<style>#cookie-notice{color:#fff;font-family:inherit;background:#29333c;padding:20px;position:fixed;bottom:10px;left:10px;width:100%;max-width:300px;box-shadow:0 10px 20px rgba(0,0,0,.2);border-radius:5px;margin:0px;visibility:hidden;z-index:1000000;box-sizing:border-box}#cookie-notice button{color:inherit;background:#2872fa;border:0;padding:10px;margin-top:10px;width:100%;cursor:pointer}@media only screen and (max-width:600px){#cookie-notice{max-width:100%;bottom:0;left:0;border-radius:0}}</style>
<script>function acceptCookie(){document.cookie="cookieaccepted=1; expires=Thu, 18 Dec 2030 12:00:00 UTC; path=/",document.getElementById("cookie-notice").style.visibility="hidden"}document.cookie.indexOf("cookieaccepted")<0&&(document.getElementById("cookie-notice").style.visibility="visible");</script>