Add page title (h1) to Blog page

Hi,
how can I add the Page title to my Blog page and put it above all posts?

Thanks!

Hi there,

Please kindly go to Settings > Reading and select a page to be your main blog page.

Then kindly go to X > Launch > Options > {Name of the stack, for example: Renew} > Blog Options > Blog Title

There you can set the title for your blog page.

Thank you.

Hi,
I already did all these things. Now, how can I show the Blog Title directly on the page? Because my Integrity’s template is not showing it.

Thanks!

Hi There,

That option will be available only if you are using legacy header. Since you are using Pro header, what we built on the header builder is what we can see. There’s no option yet to add titles for archive pages and blog. There’s an open feature request to create an element that will get page-titles automatically. For the mean, try adding the following code on your child theme functions.php:

  function custom_landmark() { 
 if(is_home()) : ?>
   <header class="x-header-landmark x-container max width">
    <h1 class="h-landmark"><span>Your Title here</span></h1>
    <p class="p-landmark-sub"><span>Subtitle here</span></p>
  </header>
  <?php endif; 
}
add_action('x_after_site_begin','custom_landmark', 90);

For more customization, see this guide: https://theme.co/apex/forum/t/customizations-actions-and-filters-in-x/208

Hope this helps.

It works perfectly. Thanks!!

You’re welcome!
Thanks for letting us know that it has worked for you.

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