Community Forums › Forums › Archived Forums › General Discussion › Need blank template code
Tagged: blank template
- This topic has 6 replies, 3 voices, and was last updated 10 years, 5 months ago by Tal.
-
AuthorPosts
-
August 21, 2013 at 1:49 pm #58005scottzMember
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 #58053Brad DaltonParticipantYou 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();
August 22, 2013 at 9:42 am #58216scottzMemberThanks 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 #58280Brad DaltonParticipantCopy 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; }
August 22, 2013 at 3:40 pm #58287scottzMemberThat'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 #59575scottzMemberI 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 #76018TalMemberI'm also trying to figure out how to do this, the above doesn't seem to actually remove anything...
-
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.