• 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

Gary Designs

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
  • Profile
  • Topics Started
  • Replies Created
  • Engagements
  • Favorites

Forum Replies Created

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • January 20, 2013 at 11:21 am in reply to: Custom Template – How do I include Header, Sidebar, Footer? #13288
    Gary Designs
    Member

    Awesome, that did it.

    Many thanks!

    January 18, 2013 at 4:40 pm in reply to: How do I make Genesis Slider "Full Width" on custom Child Theme Template? #12977
    Gary Designs
    Member

    RESOLVED.

     

    Thanks.

    January 17, 2013 at 11:20 pm in reply to: How do I make Genesis Slider "Full Width" on custom Child Theme Template? #12803
    Gary Designs
    Member

    And here is the [Functions.php] I am using:

     

    <?php
    /** Start the engine */
    require_once( get_template_directory() . '/lib/init.php' );

    /** Create additional color style options */
    add_theme_support( 'genesis-style-selector', array( 'lifestyle-blue' => 'Blue', 'lifestyle-charcoal' => 'Charcoal', 'lifestyle-gray' => 'Gray', 'lifestyle-green' => 'Green', 'lifestyle-pink' => 'Pink', 'lifestyle-purple' => 'Purple', 'lifestyle-tan' => 'Tan', 'lifestyle-teal' => 'Teal', 'lifestyle-yellow' => 'Yellow' ) );

    /** Child theme (do not remove) */
    define( 'CHILD_THEME_NAME', 'Clean' );
    define( 'CHILD_THEME_URL', 'http://www.idxmobile.net' );

    $content_width = apply_filters( 'content_width', 600, 430, 920 );

    /** Add new image sizes */
    add_image_size( 'featured', 590, 250, TRUE );
    add_image_size( 'homepage', 120, 120, TRUE );
    add_image_size( 'mini', 80, 80, TRUE );
    add_image_size( 'portfolio', 202, 140, TRUE );

    /** Add suport for custom background */
    add_custom_background();

    /** Add support for custom header */
    add_theme_support( 'genesis-custom-header', array( 'width' => 920, 'height' => 150 ) );

    /** Remove full width content filter for bbPress */
    add_filter( 'bbp_genesis_force_full_content_width', '__return_false' );

    /** Register default header options */
    register_default_headers( array(
    'default' => array(
    'url' => CHILD_URL . '/images/header.png',
    'thumbnail_url' => CHILD_URL . '/images/thumbs/header-thumb.png'
    ),
    'blue' => array(
    'url' => CHILD_URL . '/images/header-blue.png',
    'thumbnail_url' => CHILD_URL . '/images/thumbs/header-blue-thumb.png'
    ),
    'charcoal' => array(
    'url' => CHILD_URL . '/images/header-charcoal.png',
    'thumbnail_url' => CHILD_URL . '/images/thumbs/header-charcoal-thumb.png'
    ),
    'gray' => array(
    'url' => CHILD_URL . '/images/header-gray.png',
    'thumbnail_url' => CHILD_URL . '/images/thumbs/header-gray-thumb.png'
    ),
    'green' => array(
    'url' => CHILD_URL . '/images/header-green.png',
    'thumbnail_url' => CHILD_URL . '/images/thumbs/header-green-thumb.png'
    ),
    'pink' => array(
    'url' => CHILD_URL . '/images/header-pink.png',
    'thumbnail_url' => CHILD_URL . '/images/thumbs/header-pink-thumb.png'
    ),
    'purple' => array(
    'url' => CHILD_URL . '/images/header-purple.png',
    'thumbnail_url' => CHILD_URL . '/images/thumbs/header-purple-thumb.png'
    ),
    'tan' => array(
    'url' => CHILD_URL . '/images/header-tan.png',
    'thumbnail_url' => CHILD_URL . '/images/thumbs/header-tan-thumb.png'
    ),
    'teal' => array(
    'url' => CHILD_URL . '/images/header-teal.png',
    'thumbnail_url' => CHILD_URL . '/images/thumbs/header-teal-thumb.png'
    ),
    'yellow' => array(
    'url' => CHILD_URL . '/images/header-yellow.png',
    'thumbnail_url' => CHILD_URL . '/images/thumbs/header-yellow-thumb.png'
    )
    ) );

    /** Add support for post formats */
    //add_theme_support( 'post-formats', array( 'aside', 'audio', 'chat', 'gallery', 'image', 'link', 'quote', 'status', 'video' ) );
    //add_theme_support( 'genesis-post-format-images' );

    /** Remove elements for post formats */
    add_action( 'genesis_before_post', 'lifestyle_remove_elements' );
    function lifestyle_remove_elements() {

    if ( ! current_theme_supports( 'post-formats' ) )
    return;

    // Remove if post has format
    if ( get_post_format() ) {
    remove_action( 'genesis_post_title', 'genesis_do_post_title' );
    remove_action( 'genesis_before_post_content', 'genesis_post_info' );
    remove_action( 'genesis_after_post_content', 'genesis_post_meta' );
    }

    // Add back, as post has no format
    else {
    add_action( 'genesis_post_title', 'genesis_do_post_title' );
    add_action( 'genesis_before_post_content', 'genesis_post_info' );
    add_action( 'genesis_after_post_content', 'genesis_post_meta' );
    }

    }

    /** Add support for 3-column footer widgets */
    add_theme_support( 'genesis-footer-widgets', 3 );

    /** Reposition the primary navigation */
    remove_action( 'genesis_after_header', 'genesis_do_nav' );
    add_action( 'genesis_before_header', 'genesis_do_nav' );

    /** Change breadcrumb location */
    remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs' );
    add_action( 'genesis_after_header', 'genesis_do_breadcrumbs' );

    /** Add two sidebars underneath the primary sidebar */
    add_action( 'genesis_after_sidebar_widget_area', 'lifestyle_bottom_sidebars' );
    function lifestyle_bottom_sidebars() {
    foreach ( array( 'sidebar-bottom-left', 'sidebar-bottom-right' ) as $area ) {
    echo '<div class="' . $area . '">';
    dynamic_sidebar( $area );
    echo '</div><!-- end #' . $area . '-->';
    }
    }

    /** Register widget areas **/
    genesis_register_sidebar( array(
    'id' => 'sidebar-bottom-left',
    'name' => __( 'Sidebar Bottom Left', 'lifestyle' ),
    'description' => __( 'This is the bottom left sidebar.', 'lifestyle' ),
    ) );
    genesis_register_sidebar( array(
    'id' => 'sidebar-bottom-right',
    'name' => __( 'Sidebar Bottom Right', 'lifestyle' ),
    'description' => __( 'This is the bottom right sidebar.', 'lifestyle' ),
    ) );
    genesis_register_sidebar( array(
    'id' => 'home',
    'name' => __( 'Home', 'lifestyle' ),
    'description' => __( 'This is the homepage section.', 'lifestyle' ),
    ) );
    genesis_register_sidebar( array(
    'id' => 'home-left',
    'name' => __( 'Home Left', 'lifestyle' ),
    'description' => __( 'This is the homepage left section.', 'lifestyle' ),
    ) );
    genesis_register_sidebar( array(
    'id' => 'home-right',
    'name' => __( 'Home Right', 'lifestyle' ),
    'description' => __( 'This is the homepage right section.', 'lifestyle' ),
    ) );
    genesis_register_sidebar( array(
    'id' => 'portfolio',
    'name' => __( 'Portfolio', 'lifestyle' ),
    'description' => __( 'This is the portfolio page template', 'lifestyle' ),
    ) );

     

    /** Register widget areas */
    genesis_register_sidebar( array(
    'id' => 'slideshow',
    'name' => __( 'Slideshow', 'genesis' ),
    'description' => __( 'Homepage Slideshow', 'genesis' ),
    ) );

    January 17, 2013 at 10:18 am in reply to: How do I create a Child Theme with Homepage? #12631
    Gary Designs
    Member

    Awesome!   Many thanks  🙂

    Gary

    January 16, 2013 at 1:08 pm in reply to: How do I create a Child Theme with Homepage? #12368
    Gary Designs
    Member

    And I  want to use the same CSS stylesheet for the new Child Theme as the default Genesis Theme, as I like this layout.

     

    Thanks,

    Gary

    January 16, 2013 at 1:03 pm in reply to: How do I create a Child Theme with Homepage? #12366
    Gary Designs
    Member

    Yes on Home.php, in addition to the Genesis Slider,  I need to be able to include the (Header, Sidebar, Footer)

    And then register 2 new Widget Areas in  order to display Featured Posts, similar to this theme's home.php (http://demo.studiopress.com/lifestyle/)

     

    Many thanks,

    Gary

    January 16, 2013 at 11:56 am in reply to: How do I create a Child Theme with Homepage? #12347
    Gary Designs
    Member

    RE:  Adding Widget Areas

    -----------

    Do I need  to create a new [functions.php] as well for my new Child Theme (home.php) in order to register new "Widget Areas" ?

    Many thanks,
    Gary

     

    January 16, 2013 at 11:43 am in reply to: How do I create a Child Theme with Homepage? #12336
    Gary Designs
    Member

    Thanks Jared,

    And can you direct me to the [PHP Snippets] that I can use to insert into my new Home.php template that will load the (Header, Sidebar & Footer)?

    As in the default Genesis page & blog templates I only see  this ----> genesis();  ---> so I am not sure what file this  is calling the (Header, Sidebar & Footer) from?

    Many thanks,
    Gary

     

  • Author
    Posts
Viewing 8 posts - 1 through 8 (of 8 total)

CTA

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

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 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