• Resolved Liz

    (@elc95736)


    So I have the same request as this post that never got an answer.

    I would like to have some content on the main blog page though, (not on every blog post page). I tried putting in content on the page but it doesn’t show up. I’m assuming it’s covered by the posts.

    My site: http://doehrmann.com/wordpress/blog/

Viewing 2 replies - 1 through 2 (of 2 total)
  • No, it’s not covered. The content of the page called “blog” is ignored if you use it as your blog page.

    You can put the content back with the following in your child theme’s functions.php:

    // Add content of page called "blog" to the page that contains the list of blog posts
    add_action  ( '__before_loop', 'add_blog_page_content_before_post_list');
    function add_blog_page_content_before_post_list() {
    	if ( is_home() ) {
    		$post = get_page_by_path( '/blog' );
    		echo $post->post_content;
    	}
    }

    See How to customize Customizr if you’ve never used a child theme’s functions.php before.

    Thread Starter Liz

    (@elc95736)

    Thank you, that worked!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Adding Content Above Blog’ is closed to new replies.