Too much space below top menu and text

Hi, I noticed that on some pages there is space between the top menu and the text or breadcrumbs, but I don't know why there is extra space on some of these pages. Here are two examples.

The first is on the same height as the headline in the sidebar:

This one here is lower than the sidebar:

Any idea what the problem could be here?

Thanks in advance.
Dennis

Hi @Kilik91,

Thanks for reaching out.

Please add this CSS to your global custom CSS

.entry-content {
    margin-top: 0px !important;
}

It's due to default CSS like this for pages

.entry-content {
    margin-top: 25px;
}

What's weird is, the first URL has 0 top margin where it doesn't have featured image either compared to posts

.page .no-post-thumbnail .entry-content {
    margin-top: 0;
}

Thanks!

Thank you very much! That worked!

I have one more question. The search function is entirely in English. Where can I translate all the terms to another language?

Thanks in advance!
Dennis

Hi Dennis,

To translate that text, please add the following code under functions.php file locates in your child theme:

// Translate texts
// =============================================================================
function translate_texts($translated) { 
  $translated = str_ireplace('Type and Press “enter” to Search', 'Your custom text', $translated);
  return $translated; 
}
add_filter('gettext', 'translate_texts' );
// =============================================================================

Please also take a look at this article:

Hope it helps :slight_smile:

That helped a lot! Thank you very much!

You're welcome.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.