Site logo

Archived topic

The changes are not displayed

9 replies · Started by Dani on December 20, 2015

Viewing posts 1–10 of 10

Hi Tom.
In a Blog Page, I can not see the Title page.
Note:I don't disable elements (addons) & the image I configured through the "Blog Page Header".

Is normal don't see the title ? As I set to make it look ?

The page: http://bit.ly/1UQRoqL
Thanks!
Dani

Hi Dani,

Generally there's no title on the blog page - it just shows your posts.

However, you can add a title quite easily with this PHP:

add_action( 'generate_before_main_content', 'generate_add_blog_title' );
function generate_add_blog_title()
{
	if ( ! is_home() )
		return;
	?>
	<header class="page-header">
		<h1 class="entry-title" itemprop="headline">My Blog Title</h1>
	</header>
	<?php
}

Adding PHP: https://generatepress.com/knowledgebase/adding-php-functions/

Let me know if you need more info :)

Ok perfect
Thanks!
Dani

No problem! :)

Hello, I'd like to do the same thing, but my front page is a page, instead of the blog post list, so I cannot use is_home. I've tried is_page(idnumber) and is_post_type_archive(post), but they don't seem to work for some reason. Is there any other is_something left to try?

Here's a list of some combinations one could try:
https://codex.wordpress.org/Function_Reference/is_post_type_archive

Hi there, this is a really old post. If the Home Page is a standard page then the title should be displayed by default. Can you confirm?

Yeah, I see that this is an old post, but I couldn't find a solution to this anywhere else either. I'm trying to display the title of the blog posts page, not the home page.

Any chance you can open a new support topic?

Your question isn't really related to this.

Thanks!

Sure!

Thanks :)

This archived topic is closed to new replies.