Blog-title setup on ethos

Hi there,

As @mldarshana suggested, I open a new thread here.

  1. I would like to have a titel “News Section” above my blogpage. (ethos)

I found out already that there are no blog-header options in ethos, so I found a piece of code from another post, which I inserted in my child themes function.php.
The piece of code is:

// Add custom blog title for Ethos stack

// =============================================================================
function add_blog_title(){ ?>

<?php $disable_page_title = get_post_meta( get_the_ID(), '_x_entry_disable_page_title', true ); ?> <?php $disable_filters = get_post_meta( get_the_ID(), '_x_portfolio_disable_filtering', true ); ?> <?php if ( is_home() ) : ?>
<header class="x-header-landmark x-container max width">
  <h1 class="h-landmark"><span>My Blog</span></h1>
</header>
<?php endif; ?> <?php } add_action('x_after_view_ethos__landmark-header', 'add_blog_title'); // ============================================================================= **The problem:** somehow I cannot see the title yet. **It seems that it might be hidden under the header**? I can't find the page settings anymore, where I am able to choose "show header, footer, container, no container etc" Where is that option for my blogpage? I have it on my other pages.... Many Thx Maik

Hi There,

Could you please try adding the following CSS rule into your Customizer, Custom > CSS area.

.x-header-landmark.x-container.max.width {
    margin-top: 125px;
}

Hope that helps.

Hi @mldarshana

Thank you for the CSS, I added it but nothing happened.

Hope you have another idea.

Cheers

Maik

Hi Maik,

Please add the following code to Them Options CSS

.single-post .x-main.full {
 
    margin-top: 200px;
}

Hope it helps!

Hi there and thanks for your response.

Unfortunately nothing at all happened again when I put your piece of CSS in the customizer.
Really strange… both blogpage and single post page are hidden under the header

Best regards

Maik

Hi Maik,

In that case, would you mind providing us with login credentials so we can take a closer look? Please provide following information:

Set it as Secure Note

  • Link to your site
  • WordPress Admin username / password
  • FTP credentials

Thanks!

Hi @mldarshana

Of course, I will do so. pls check secure note
BTW. I noticed that my footer looks a bit messed up on the blog and post-page.
All other pages the footer looks fine… Maybe you could have a look at this too?

Thank you very much !!!

Maik

Hi There,

You had added the code inside a media query which was aiming for the code to work just below 960px width and that is why it was not working, I have moved the code outside of the media query and add another for your blog page, please take a look,

Let us know how it goes.

Thanks

1 Like

@Joao Thank you so much!
Very helpful!

You’re most welcome.

1 Like