Show title on blog page
-
Hi,
the title is not showing on archive pages, which I think is a WP thing and not theme related. I googled this and only found solutions that suggest using a block element. I’m not using gutenberg at all.
I already got the tag and category titles to show with this:
add_filter( 'get_the_archive_title', function( $title ) { if ( is_category() ) { $title = single_cat_title(); } elseif ( is_tag() ) { $title = single_tag_title(); } return $title; }, 50 );
The only thing I still need is the title on the blog page itself (not the single post page, it’s fine). Can you pls provide a simple snippet to achieve this?
Thanks!
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Show title on blog page’ is closed to new replies.