Blog Template

This topic is: not resolved

This topic contains 1 reply, has 2 voices, and was last updated by  braddalton 6 months, 2 weeks ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #98977

    Serenity
    Participant
    Post count: 21

    I was wondering if anyone has any ideas on how to edit the blog template in Genesis Framework. The template I have is called: page_blog.php and it is the default template I believe. The code inside the template is the following:

    <?php
    /**
     * Genesis Framework.
     *
     * WARNING: This file is part of the core Genesis Framework. DO NOT edit this file under any circumstances.
     * Please do all modifications in the form of a child theme.
     *
     * @package Genesis\Templates
     * @author  StudioPress
     * @license GPL-2.0+
     * @link    http://my.studiopress.com/themes/genesis/
     */
    
    //* Template Name: Blog
    
    //* The blog page loop logic is located in lib/structure/loops.php
    genesis();
    

    I would assume that I need to edit the file in this location: /genesis/ lib/structure/loops.php which I found by the way but struggling to make changes to it.

    What I am trying to do is put some content above the blog template. Any input on the matter?

    Regards,


    “ First, solve the problem. Then, write the code. ”

    http://localhost.com
    #98998

    braddalton
    Participant
    Post count: 10261

    You can hook it in using a custom function or create a blog page template in your child theme.

    Here’s a very basic version http://my.studiopress.com/snippets/blog-page-content/

    You can then add content in your editor after selecting the page template as your posts page.

    Modifying any Genesis files will be lost when you update Genesis and may cause immediate errors in your site.


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

You must be logged in to reply to this topic.