Support » Theme: MH Magazine lite » white space between logo and menu

  • Resolved shlag

    (@shlag)


    Hi!
    I have a white space between the top image and my menu if I choose to hide the site logo. I can’t find where it comes from…

    Do you have any idea how to remove this white space ?

    My website is not online, so here is a screenshot: white space

Viewing 7 replies - 1 through 7 (of 7 total)
  • Theme Author MH Themes

    (@mh-themes)

    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.

    shlag

    (@shlag)

    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.

    Theme Author MH Themes

    (@mh-themes)

    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.

    shlag

    (@shlag)

    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 ?

    Theme Author MH Themes

    (@mh-themes)

    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.

    Theme Author MH Themes

    (@mh-themes)

    Ok, thanks for letting us know and we’re very happy that your issue is solved. πŸ™‚

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.