Add H1 to Blog Index page

Hi,

How can I add an H1 to our blog index page?

Thanks.

Hi There @tektonministries

Thanks for writing in! By default, your Blog title is wrapped around with a H1 tag and usually the best practice would be to use one H1 tag per page.

Could you please provide us with a link to your Blog index page and describe what changes that you would like to accomplish, so that we should be able to assist you accordingly.

Thanks!

I would just like to add one. I’m sure I’m missing something but I don’t see how to add one.

Hello Tekton,

Since you are using Pro theme and then you have used the custom header, the landmark title which is part of the default header have been replaced.

I would recommend that you duplicate your current header and then assigned this header as your Posts Page header. Edit the newly duplicated header and insert another container which will contain the “Blog” header title.

We would loved to know if this has work for you. Thank you.

Ok. Is there a way to keep the title within the inner container?

Hello Tekton,

If you want to add the blog title within the container, assuming the child theme is set up, please add the following code in your child theme’s functions.php file

// Custom Blog Header
// =============================================================================
function add_custom_blog_title(){ ?>
	
	<div class="x-landmark-breadcrumbs-wrap mtm mbl">
		<div class="x-landmark">
            <h1 class="h-landmark"><span>The Blog</span></h1>                  
		</div>
	</div>

<?php }
add_action('x_before_view_global__script-isotope-index', 'add_custom_blog_title');
// =============================================================================

We would loved to know if this has work for you. Thank you.

That worked. Thanks.

Hey Tekton,

You’re welcome! We are just glad we were able to help you out.
We really appreciate for letting us know that it has worked for you.

Cheers.

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