Add blog title to blog template

Community Forums Forums Design Tips and Tricks Add blog title to blog template

This topic is: not resolved

This topic contains 5 replies, has 3 voices, and was last updated by  braddalton 5 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #93105

    gabk77
    Participant
    Post count: 1

    Hi,

    I’m using the blog template which shows posts one after the other. However I would like the H1 blog page title to show above the posts. Can someone share some genesis code with me?

    Thanks!

    Gabriella

    #93345

    braddalton
    Participant
    Post count: 9959

    Why can’t you add it to the page title?


    #93352

    gabk77
    Participant
    Post count: 1

    Hey Brad, thanks for responding.

    I’m using the genesis blog template. This, by default, does not show the title of the page I am adding this blog template too. So I need to figure out some code to show the page title or another type of workaround. Does this make sense?

    Gabriella

    #93373

    braddalton
    Participant
    Post count: 9959

    You must be referring to a home.php or something else.


    #103207

    Au Coeur
    Participant
    Post count: 102

    Hey @gabk77, I just did this for a client. If you add a file called page_blog.php in your child theme folder and then add this code:

    <?php
    /**
     *
     * Template Name: Blog
     * This file modifies the blog template.
     *
     * @author Au Coeur Design
     * @link http://www.aucoeurdesign.com
     * @package Genesis
     */
     
    add_action('genesis_loop', 'genesis_standard_loop', 8);
     
    genesis();

    The title and any content you have on that page will appear before the loop.


    Mother. Web & Graphic Designer. Lactation Consultant. Blogging about how it all fits together, most recently from northern Colorado. Visit my blog or my design site.

    #103217

    braddalton
    Participant
    Post count: 9959
Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.