Skip to content

Instantly share code, notes, and snippets.

@ahmedeshaan
Last active August 29, 2017 11:43
Show Gist options
  • Save ahmedeshaan/1cfc3cf8d8840806ed0ded477d51f048 to your computer and use it in GitHub Desktop.
Save ahmedeshaan/1cfc3cf8d8840806ed0ded477d51f048 to your computer and use it in GitHub Desktop.
.admin-bar p.demo_store {
top: 28px;
}
p.demo_store {
position: fixed;
top: 0;
left: 0;
right: 0;
margin: 0;
width: 100%;
font-size: 1em;
padding: .5em 0;
text-align: center;
border: 1px solid #96588a;
color: #ffffff;
z-index: 99998;
}
body { padding-top: 43px; }
.removepadding{
padding-top:0px;
}
<script type="text/javascript">
jQuery(".woocommerce-store-notice__dismiss-link").live("click", function(){
jQuery("body").addClass('removepadding');
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment