• 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

Need blank template code

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 › General Discussion › Need blank template code

This topic is: not resolved

Tagged: blank template

  • This topic has 6 replies, 3 voices, and was last updated 12 years, 3 months ago by Tal.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • August 21, 2013 at 1:49 pm #58005
    scottz
    Member

    I am currently building a shopping cart with Cart66 Cloud, and using genesis with the associate child theme. I need a template without sidebar or footer so the cart and checkout pages will have a large area to populate, at least that's what they are requesting.

    Is there some basic template code anyone has, or a simple way to create this extra template. I'm not a wiz at php but I've been able to follow most of the instructions from this forum, when needing something of this nature.

    This is what it is looking like...not pretty.

    https://libby-airborneathletics-com.cart66.com/checkout/preview

    See how the cart is bleeding into the footer...

    Any help you can give is appreciated.

    Thanks!

    http://myic3.com/
    August 21, 2013 at 4:39 pm #58053
    Brad Dalton
    Participant

    You can use the page_landing.php template from your theme and remove the remove actions you don't want to use.

    <?php
    /**
     * This file adds the Landing template to the Associate Child Theme.
     *
     * @author StudioPress
     * @package Generate
     * @subpackage Customizations
     */
    
    /*
    Template Name: Custom
    */
    
    // Add custom body class to the head
    add_filter( 'body_class', 'add_body_class' );
    function add_body_class( $classes ) {
       $classes[] = 'custom-template';
       return $classes;
    }
    
    // Remove header, navigation, breadcrumbs, footer widgets, footer 
    add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' );
    remove_action( 'genesis_header', 'genesis_header_markup_open', 5 );
    remove_action( 'genesis_header', 'genesis_do_header' );
    remove_action( 'genesis_header', 'genesis_header_markup_close', 15 );
    remove_action( 'genesis_after_header', 'genesis_do_nav' );
    remove_action( 'genesis_after_header', 'genesis_do_subnav', 15 );
    remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs');
    remove_action( 'genesis_before_footer', 'genesis_footer_widget_areas' );
    remove_action( 'genesis_footer', 'genesis_footer_markup_open', 5 );
    remove_action( 'genesis_footer', 'genesis_do_footer' );
    remove_action( 'genesis_footer', 'genesis_footer_markup_close', 15 );
    
    genesis();
    

    Tutorials for StudioPress Themes.

    August 22, 2013 at 9:42 am #58216
    scottz
    Member

    Thanks for generously sharing your time Brad....

    You're saying the landing page template is part of associate, I didn't see it. If it isn't, how do I add it? Do I add a file to the ftp, or do I add to functions/php?

    Forgive me, this php and template stuff is a bit over my head.

    August 22, 2013 at 3:32 pm #58280
    Brad Dalton
    Participant

    Copy that code to a new file using a text editor like Notepad++ and name it page_custom.php then upload it to your child themes root directory. Same place as the functions file.

    Select it from the Page Attributes for any page.

    You can also add CSS to style it.

    /* Landing Page
    ------------------------------------------------------------ */
    .custom-landing .site-inner {
    	border: 1px solid #222;
    	max-width: 700px;
    	margin: 32px auto;
    	margin: 2rem auto;
    	padding: 48px 64px 0;
    	padding: 3rem 4rem 0;
    }
    
    .custom-landing .site-inner {
    		border: none;
    }
    

    Tutorials for StudioPress Themes.

    August 22, 2013 at 3:40 pm #58287
    scottz
    Member

    That's kinda what I thought, just wasn't sure on the naming convention. Really good to know.

    Appreciate your time!

    August 29, 2013 at 12:04 pm #59575
    scottz
    Member

    I bring this question to you, because it's part of the same issue. I am working on trying to alter the template for this page, a shopp shopping cart. I'm trying to remove the breadcrumbs, date, and the hello world phantom post title.

    http://myic3.com/shop/
    http://myic3.com/shop/category/ic3-products/

    I took your advice, and created the separate template using the code you gave me which I am using as the custom page template, in this case, I was instructed by Shopp support to create one called shopp.php.
    http://optimizemyshopp.com/blog/an-explanation-of-shopp-templates-theme-vs-content/

    I did this using the code you supplied me, and then tried customizing the code thus:

    <?php
    /**
    * This file adds the Landing template to the Associate Child Theme.
    *
    * @author StudioPress
    * @package Generate
    * @subpackage Customizations
    */

    /*
    Template Name: Custom
    */

    // Add custom body class to the head
    add_filter( 'body_class', 'add_body_class' );
    function add_body_class( $classes ) {
    $classes[] = 'custom-template';
    return $classes;
    }

    // Remove header, navigation, breadcrumbs, footer widgets, footer
    /* add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' ); */
    /* remove_action( 'genesis_header', 'genesis_header_markup_open', 5 ); */
    remove_action( 'genesis_header', 'genesis_do_header' );
    /* remove_action( 'genesis_header', 'genesis_header_markup_close', 15 ); */
    /* remove_action( 'genesis_after_header', 'genesis_do_nav' ); */
    remove_action( 'genesis_after_header', 'genesis_do_subnav', 15 );
    remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs');
    remove_action( 'genesis_before_footer', 'genesis_footer_widget_areas' );
    remove_action( 'genesis_footer', 'genesis_footer_markup_open', 5 );
    remove_action( 'genesis_footer', 'genesis_do_footer' );
    remove_action( 'genesis_footer', 'genesis_footer_markup_close', 15 );

    genesis();

    As you can see, I still see the breadcrumbs and such. Do you have any further suggestion how to remedy this?

    Thanks in advance for your expert advice!

    November 28, 2013 at 6:33 am #76018
    Tal
    Member

    I'm also trying to figure out how to do this, the above doesn't seem to actually remove anything...

  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 total)
  • The forum ‘General Discussion’ 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

© 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