[Resolved] How to add Blog title in blog page theme Dev of Mike Oliver

Home Forums Support [Resolved] How to add Blog title in blog page theme Dev of Mike Oliver

Home Forums Support How to add Blog title in blog page theme Dev of Mike Oliver

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1526244
    Mr Calvert

    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?

    #1526417
    David
    Staff
    Customer Support

    Hi there,

    go to Appearance > Elements and edit the Blog Page Header

    #1526528
    Mr Calvert

    How to add that when I disable Elements in GeneratePress?

    #1526930
    David
    Staff
    Customer Support

    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>.

    #1526994
    Mr Calvert

    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 }
    }
    #1527082
    Leo
    Staff
    Customer Support

    Why are you disabling the Elements module when you actually need it?

    #1527119
    Mr Calvert

    I don’t want CSS inline sir! When active that it will add CSS inline!

    #1527267
    Leo
    Staff
    Customer Support
    #1537278
    Mr Calvert

    Yes thank work! Thank you so much ^^!

    #1537871
    Leo
    Staff
    Customer Support

    No problem 🙂

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