Hi Shlag,
thanks for using MH Magazine lite.
That seems to be the regular padding around the site logo. If you want to upload a full-width header image (without padding) instead of a logo, then you can do that in your WordPress dashboard under Appearance => Customize => Header Image.
Thank’s for your answer! The image you can see on my screenshot is a “Header Image”. If I choose a logo (or a site title), it will appear inside this white space.
Ok, but then there shouldn’t be white space unless there is something else located in your header or CSS code that is interfering. Unfortunately there is no way for us to tell without seeing your live site.
However, what you could do is use your browser’s inspection tool to inspect your header and determine where that space is coming from. If you’ve found it, you can either get rid of the element that is causing your issue or remove the space with CSS.
I already tried with the inspection tool but without any success π
I just found out that this problem only occurs on my child theme. Style.css is empty, and functions.php only contains this:
<?php
add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );
function my_theme_enqueue_styles() {
wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
}
?>
Is this correct ?
This definitely isn’t a theme issue, so you must have something on your site that is causing this. Usually you should be able to inspect the space with an inspection tool and it’s unlikely that the inspection tool shows nothing.
I just found out that this problem only occurs on my child theme.
Ok, there you have it. In that case the issue is related to your child theme and we can only recommend that you debug the code in your child theme. Please also keep in mind that you only need a child theme if you’re familiar with coding and in case you actually plan to modify code. Otherwise you won’t need a child theme.
Style.css is empty, and functions.php only contains this…
If you’re familiar with coding and want to create a child theme for code modifications, then you can find the necessary information documented here:
Thanks, it’s solved! It was a bug with bootstraps’ cdn and functions.php of my child theme.
Ok, thanks for letting us know and we’re very happy that your issue is solved. π