Skip to content

Instantly share code, notes, and snippets.

@topleague
Created October 5, 2024 09:16
Show Gist options
  • Save topleague/c09072adf05bf4da425a20f3cccc7673 to your computer and use it in GitHub Desktop.
Save topleague/c09072adf05bf4da425a20f3cccc7673 to your computer and use it in GitHub Desktop.
How to Add Cookie Notice to Your Genesis Website
@topleague
Copy link
Author

/* Add Cookie Notice in the footer */
#cookie-notice {
color: #fff;
font-family: inherit;
background: #596cd5;
padding: 20px;
position: fixed;
bottom: 10px;
left: 10px;
width: 100%;
max-width: 300px;
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
border-radius: 5px;
margin: 0;
visibility: visible;
z-index: 9999;
box-sizing: border-box;
}

@media only screen and (max-width: 600px) {
#cookie-notice {
max-width: 100%;
bottom: 0;
left: 0;
border-radius: 0;
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment