Last active
July 12, 2017 08:18
-
-
Save bigdigital/15796ca6a86a59109d94c94c1a51c06c to your computer and use it in GitHub Desktop.
The7 Borders around the site
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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 ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*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; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.