Skip to content

Instantly share code, notes, and snippets.

@ginsterbusch
Last active August 29, 2015 14:25
Show Gist options
  • Save ginsterbusch/b79d15bed7a5d7ab738f to your computer and use it in GitHub Desktop.
Save ginsterbusch/b79d15bed7a5d7ab738f to your computer and use it in GitHub Desktop.
Example for an external link redirect out of a WP menu (JS overlay, centered message, CSS).
/**
* NOTE: I've intentionally NOT added a file name, because else Github Gist is using it as name of the gist, instead of the JS file, which would be the correct 'name'.
*/
.redirect-overlay {
background: rgba(255,255,255,0.8);
color: #000;
width: 100%;
height: 100%;
display: block;
position: fixed;
z-index: 9999;
}
.redirect-overlay-content {
display: block;
min-width: 250px;
min-height: 100px;
position: fixed;
border: 1px solid #bbb;
padding: 0.5em 1em;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment