Home Forums Meteorite Blog title

This topic is: resolved

This topic contains 3 replies, has 2 voices, and was last updated by  Terra Themes 1 month ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #901

    JuanMZC
    Participant

    How can I set up a title <h1>Blog Title</h1> in my blog page? https://alternativedebt.com.au/blog/

    #902

    Terra Themes
    Keymaster

    Please provide some feedback whether this works for you.

    Install and activate the My Custom Functions plugin.

    Then use this PHP function:

    <?php
    
    function meteoriteAddBlogHeading() {
    	if ( is_home() ) {
    		echo '<h1>' . esc_html( get_the_title( get_option( 'page_for_posts' ) ) ) . '</h1>';
    	}
    }
    add_action('meteorite_before_content', 'meteoriteAddBlogHeading');
    #907

    JuanMZC
    Participant

    It’s working perfectly. Thanks so much!

    #908

    Terra Themes
    Keymaster

    You’re welcome! Thank you for the feedback. I’ll mark this topic as resolved.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.