Skip to content

Instantly share code, notes, and snippets.

@bigdigital
Last active July 12, 2017 08:18
Show Gist options
  • Save bigdigital/15796ca6a86a59109d94c94c1a51c06c to your computer and use it in GitHub Desktop.
Save bigdigital/15796ca6a86a59109d94c94c1a51c06c to your computer and use it in GitHub Desktop.
The7 Borders around the site
//add this code to functions.php of your main or child theme
function presscore_render_paspartu() {
?><div class="paspartu_top"></div><?php
}
add_action( 'presscore_body_top', 'presscore_render_paspartu', 40 );
/*add this to Custom CSS*/
.masthead {
top: 50px !important;
}
.paspartu_top {
position: fixed;
height: 50px;
width: 100%;
top: 0;
left: 0;
z-index: 9999;
background: #fff;
}
body {
border: 50px solid #FFF;
border-top: 0;
height:100vh;
}
@Elkevdh
Copy link

Elkevdh commented Jul 12, 2017

Unfortunately this causes problems because of the way the position of the full-width layers is calculated. You end up with a space on the right side of the row.

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