How to delete black border?
-
The Theme twentysixteen has an ugly black border. I started to delete that, but was not successfull at all on top and bottom.
With help of Edge developer tools i identified
body:not (.custom-background-image):before, body:not (.custom-background-image):after {
height: 0px !important;
}as right place for changes. In preview this works, but not in reality.
I got advice to use
.site:before,
.site:after {
display: none !important;
}but this was without effect too.
Additional informations: I placed this code in “additional CSS” of the customer. I use a child theme and tried to place it in the child style.css. All without effect. Other experiments with border-top, padding, background:transparent and so on where without result.
I use
add_filter( ‘show_admin_bar’ , ‘my_function_admin_bar’); function my_function_admin_bar($show_admin_bar) { return ( current_user_can( ‘XXX’ ) ) ? $show_admin_bar : false; }
in functions.php to hide the admin bar for not registered people – this works. But there is still this ugly black border.
I searched this forum but all i found did not work. Does somebody have an idea for a solution that funcs?
The page I need help with: [log in to see the link]
- The topic ‘How to delete black border?’ is closed to new replies.