Need blank template code

Community Forums Forums General Discussion Need blank template code

This topic is: not resolved

This topic contains 6 replies, has 3 voices, and was last updated by  Tal 1 year ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #58005

    scottz
    Participant
    Post count: 38

    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/
    #58053

    braddalton
    Participant
    Post count: 10667

    You can use the page_landing.php template from your theme and remove the remove actions you don’t want to use.
    [php]
    <?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();
    [/php]


    #58216

    scottz
    Participant
    Post count: 38

    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.

    #58280

    braddalton
    Participant
    Post count: 10667

    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.
    [css]
    /* 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;
    }
    [/css]


    #58287

    scottz
    Participant
    Post count: 38

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

    Appreciate your time!

    #59575

    scottz
    Participant
    Post count: 38

    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!

    #76018

    Tal
    Participant
    Post count: 21

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

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

You must be logged in to reply to this topic.