Archived topic
How to add Blog title in blog page theme Dev of Mike Oliver
9 replies · Started by Mr Calvert on November 10, 2020
How to add Blog title in blog page theme Dev of Mike Oliver?
My URL: https://bongcuoi.com/blog/
All page different have show title but this not show! How to fix that?
Hi there,
go to Appearance > Elements and edit the Blog Page Header
How to add that when I disable Elements in GeneratePress?
I am not sure what you mean?
The Blog page by default does not have a Content Title like a regular Post or Page.
The simplest method is to use a Header Element to display your own <h1>My Block Title</h1>.
Yes thanks you so much! I not active Element so don't have anywhere to add Header Element.
I was try with this code I think it right. Do you think so?
add_action ('generate_after_header', 'add_blog_post_title', 20);
function add_blog_post_title () {
if ( is_home() ) { ?>
<div class="page-hero">
<h1 class="entry-title" itemprop="headline">Blog.</h1>
</div>
<?php }
}
Why are you disabling the Elements module when you actually need it?
I don't want CSS inline sir! When active that it will add CSS inline!
Yes thank work! Thank you so much ^^!
No problem :)