Remove header space | WordPress.org

[ad_1]

Hi @abhisheksharma8789,

You can add the below CSS to your site from Appearance > Customize > Additional CSS:


.home.blog .site-header, .home.page:not(.page-template-template-homepage) .site-header, .home.post-type-archive-product .site-header{
    margin-bottom: 0 !important;
}

Let us know how it goes!

Hi there @abhisheksharma8789

You can try the CSS below:


@media screen and ( max-width: 768px ) {
	.home header#masthead{
		margin-bottom:0 !important;
	}
}

This will only work on mobile.

I hope this helps!

Hi there @abhisheksharma8789

As I see, the CSS syntax on your site isn’t correct:

The extra @media screen and (max-width: 768px) { needs to be eliminated.

I’d also suggest validating your CSS with a tool like

I hope this helps!

I have removed it but not worked

Hi there again!

I see there is an unwanted character in your CSS:

You can remove that and validate your CSS with

I hope this helps!

 

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