• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Child Theme – single.php, Blog Post Layout

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Child Theme – single.php, Blog Post Layout

This topic is: not resolved

Tagged: blog layout, child theme, single.php

  • This topic has 2 replies, 2 voices, and was last updated 8 years, 11 months ago by DTHkelly.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • February 13, 2013 at 12:10 pm #20106
    skarritt
    Member

    Greetings,

    I'm fairly new to using Genesis.  I've got a child theme set up that has no single.php file.  The one included in the Genesis core files only includes the code;

    <?php

    genesis();

    Question:  Is there a tutorial or a sample that shows how I can expand my layout possibilities with individual blog posts?  My assumption is that the new single.php file would be calling the get_header and get_footer functions ... and all the other other necessary functions in between (I just don't know what I should be starting with).

    Thanks in advance for your replies!

    -- Kevin

    February 13, 2013 at 3:16 pm #20148
    skarritt
    Member

    I got it!  No need to reply.  I used THIS as my new single.php file (pasted below).

    =-=-=-=-=-=-=-=-=-=

    <?php

    get_header();
    genesis_before_content_sidebar_wrap();
    ?>
    <div id="content-sidebar-wrap">

    <?php genesis_before_content(); ?>
    <div id="content" class="hfeed">
    <?php
    genesis_before_loop();
    genesis_loop();
    genesis_after_loop();
    ?>

    </div><!-- end #content -->
    <?php genesis_after_content(); ?>

    </div><!-- end #content-sidebar-wrap -->
    <?php
    genesis_after_content_sidebar_wrap();
    get_footer();

     

    April 14, 2014 at 9:35 pm #100344
    DTHkelly
    Member

    Thank you for posting this!

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble