Community Forums › Forums › Archived Forums › Design Tips and Tricks › Creating Landing Page Template for Infusionsoft HTML
- This topic has 2 replies, 3 voices, and was last updated 12 years, 1 month ago by
WMcKinley.
-
AuthorPosts
-
March 4, 2013 at 6:39 pm #24224
I'm trying to create a landing page template for my Infusionsoft code.
Landing page is here: http://nickortizlaw.com/free-car-accident-book/
As set out on http://www.briangardner.com/create-landing-page/, I created a page_landing.php file and uploaded to child theme (Frederik by http://www.web-savvy-marketing).
Here is the code so far:
<?php
/*
Template Name: Landing
*/// Add custom body class to the head
add_filter( 'body_class', 'add_body_class' );
function add_body_class( $classes ) {
$classes[] = 'custom-landing';
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_post_title’, ‘genesis_do_post_title’);
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_before_header', 'genesis_do_nav' );
remove_action( 'genesis_after_header', 'genesis_do_nav' );
remove_action( 'genesis_after_header', 'genesis_do_subnav' );
remove_action( ‘genesis_after_header’, ‘genesis_do_breadcrumbs’);
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 );
remove_filter(‘the_content’, ‘get_author_bio’);genesis();
However, I still have a header/title, breadcrumb, author box, footer and more.
Issues: (1) I'm trying to have clean slate for landing page;
(2) Not sure why there is a bunch of space from the breadcrumb to the header of landing page.
Any assistance to create blank landing page template would be greatly appreciated!
March 8, 2013 at 12:19 pm #25023jjeaton
MemberHave you made sure to set the Page Template of your landing page in the page editor to "Landing"?
March 8, 2013 at 5:28 pm #25076WMcKinley
Memberregarding issue 2 - I looked at your page in Firebug and changed one little thing to pull the body of the page up to the top
.entry-content p {
margin: 0 0 -25px;It was 25px and I changed it to -25px
Also it looks like there's some code that isn't doing anything adding to that problem
li, ol, ul {
margin: 0;
padding: 0;It's creating a bullet point in the upper right because that's code for a list where there is none. I would cut that out.
I'm not positive this is "best practice" but it worked.
Anyone reading this that doesn't have Firebug - it's a must-have tool for this kind of stuff.
Cheers.
W. McKinley – PowerEmini.com
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.