How to delete black border?

[ad_1]

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?

  • This topic was modified 1 day ago by 182tage.
  • This topic was modified 1 day ago by 182tage.

The page I need help with: [log in to see the link]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer