[Resolved] The changes are not displayed

Home Forums Support [Resolved] The changes are not displayed

Home Forums Support The changes are not displayed

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #161101
    Dani

    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

    #161128
    Tom
    Lead Developer
    Lead Developer

    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 πŸ™‚

    #161151
    Dani

    Ok perfect
    Thanks!
    Dani

    #161161
    Tom
    Lead Developer
    Lead Developer

    No problem! πŸ™‚

    #597232
    Joona

    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

    #597250
    David
    Staff
    Customer Support

    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?

    #597497
    Joona

    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.

    #597499
    Leo
    Staff
    Customer Support

    Any chance you can open a new support topic?

    Your question isn’t really related to this.

    Thanks!

    #597728
    Joona

    Sure!

    #597803
    Leo
    Staff
    Customer Support

    Thanks πŸ™‚

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.