Community Forums › Forums › Archived Forums › Design Tips and Tricks › Landing Page Plugin
Tagged: Landing page plugin
- This topic has 19 replies, 2 voices, and was last updated 12 years, 10 months ago by
Teresa.
-
AuthorPosts
-
December 17, 2013 at 10:30 am #79780
Teresa
ParticipantI may have dreamed it, but I thought I saw a post that mentioned a new plugin that would create a Landing Page
if the Child theme didn't have one. I've searched the Forum and I've even Googled it, but nothing is coming up.I'm doing some major reconstruction on http://www.CenterForEmpoweredWomen.com and really need the Landing Page.
Did I imagine it, or does anyone know what I'm talking about?
Thanks.
Teresa
http://www.centerforempoweredwomen.comDecember 17, 2013 at 11:21 am #79793nutsandbolts
MemberBrad Dalton has a tutorial on creating a landing page template. Maybe that's what you were thinking of? http://wpsites.net/web-design/how-to-create-a-custom-landing-page-template-for-genesis/
Andrea Whitmer, Owner/Developer, Nuts and Bolts Media
I provide development and training services for designers • Find me on Twitter and Google+December 17, 2013 at 1:29 pm #79808Teresa
ParticipantI was able to create the Landing Page with the tutorial, but something is still wrong. The top navigation and the footer widgets are still there.
This is the page: http://www.centerforempoweredwomen.com/thank-you-and-welcome/
What did I do - or not do?
Thanks so much.
Teresa
December 17, 2013 at 11:20 pm #79870nutsandbolts
MemberAll the changes below need to be made in your landing page template, NOT in functions.php (just making sure so you don't break the rest of your site!)
Okay, for the nav -
Find this in your landing page template:
remove_action( 'genesis_after_header', 'genesis_do_nav' ); remove_action( 'genesis_before', 'genesis_do_subnav' );Remove it and replace with this:
remove_action( 'genesis_before_content_sidebar_wrap', 'genesis_do_nav' ); remove_action( 'genesis_before_content_sidebar_wrap', 'genesis_do_subnav' );For breadcrumbs, find this:
remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs' );and replace with this:
remove_action( 'genesis_before_content', 'genesis_do_breadcrumbs' );For the footer, find this:
remove_action( 'genesis_after', 'genesis_footer_markup_open', 11 ); remove_action( 'genesis_after', 'genesis_do_footer', 12 ); remove_action( 'genesis_after', 'genesis_footer_markup_close', 13 );and replace with this:
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 );That should take care of it - you didn't do anything wrong, your theme just has a few elements repositioned vs. the theme he used in the tutorial. Let me know if the footer doesn't go - that's the only one I'm not 100% sure about.
Andrea Whitmer, Owner/Developer, Nuts and Bolts Media
I provide development and training services for designers • Find me on Twitter and Google+December 18, 2013 at 7:13 am #79939Teresa
ParticipantThe footer did not go, but the rest of it is fixed.
If I can get that straightened out, it will be good to go.
Thank you, Andrea. I really appreciate your help.
Teresa
December 18, 2013 at 7:21 am #79940nutsandbolts
MemberDarn! Really? That's working beautifully for me on a test site with the Education theme.
Can you paste in your entire landing page template as it is now?
Andrea Whitmer, Owner/Developer, Nuts and Bolts Media
I provide development and training services for designers • Find me on Twitter and Google+December 18, 2013 at 9:27 am #79960Teresa
ParticipantI'm sure it's something I've done. Here you go:
<?php
/**
* This file adds the Custom Landing template to the Education Theme.
*
* @author Brad Dalton
* @package Generate
* @subpackage Customizations
*//*
Template Name: Landing
*/// Add custom body class to the head
add_filter( 'body_class', 'education_add_body_class' );
function education_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_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_content_sidebar_wrap', 'genesis_do_nav' );
remove_action( 'genesis_before_content_sidebar_wrap', 'genesis_do_subnav' );
remove_action( 'genesis_before_content', 'genesis_do_breadcrumbs' );
remove_action( 'genesis_after', '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();
December 18, 2013 at 4:29 pm #80044nutsandbolts
MemberThat works perfectly on my test site... Do you have the Simple Edits plugin installed, by chance? If so, try deactivating it and see if the footer goes away on the landing page. If so, we can code your footer edits into functions.php so Simple Edits doesn't override the template.
Andrea Whitmer, Owner/Developer, Nuts and Bolts Media
I provide development and training services for designers • Find me on Twitter and Google+December 18, 2013 at 5:43 pm #80067Teresa
ParticipantI do have Simple Edits installed, but I've done some tinkering with the template and now something else weird has happened.
If you look at the page again: http://www.centerforempoweredwomen.com/thank-you-and-welcome/ you'll see that the footer widget is gone, but the top Navigation menu is back.
What I did was this: I copied the Landing page .php from the Balance theme and substituted it for the one we were using that got rid of the top Navigation, but left the Footer Widgets.
It got rid of the Footer Widgets and brought back the top Navigation. How's that for weird? LOL
Any suggestions now? I can start all over - whatever you suggest. If we simply can't get rid of the top Navigation, that's better than having the Footer widgets, but I'd like to get rid of all of it.
Thanks so much for your patience.
Teresa
December 18, 2013 at 5:45 pm #80068nutsandbolts
MemberTry adding this:
remove_action( 'genesis_after_header', 'genesis_do_nav' );
Andrea Whitmer, Owner/Developer, Nuts and Bolts Media
I provide development and training services for designers • Find me on Twitter and Google+December 18, 2013 at 6:15 pm #80072Teresa
ParticipantDoes it matter where I add it?
Thanks.
Teresa
December 18, 2013 at 11:08 pm #80101nutsandbolts
MemberIt shouldn't matter, no. *crosses fingers*
Andrea Whitmer, Owner/Developer, Nuts and Bolts Media
I provide development and training services for designers • Find me on Twitter and Google+December 19, 2013 at 9:16 am #80203Teresa
ParticipantIt didn't work. So I'm going to start over and go through it step-by-step like I've done with your help for the past 2 days.
I have a better idea of what I should be looking for this time. Maybe I can catch the problem when it happens.
If I Deactivate the Genesis Simple Edits plugin, will that cause the theme to revert to the original content, or will it keep the changes I've made?
I'll start working on the Landing Page right now and keep you posted.
Thank you so much Andrea. I know this takes time away from your own business projects and I deeply appreciate your help.
Teresa
December 19, 2013 at 2:58 pm #80314nutsandbolts
MemberYour changes will revert without Simple Edits. However, if you paste in the changes you've made, I can write functions for you to put in functions.php so you won't need Simple Edits anymore.
Andrea Whitmer, Owner/Developer, Nuts and Bolts Media
I provide development and training services for designers • Find me on Twitter and Google+December 19, 2013 at 4:14 pm #80330Teresa
ParticipantI deeply appreciate your help. But I think I've fixed most of it. Here is the link to the page:
http://www.centerforempoweredwomen.com/thank-you-and-welcome/And here is the code that I finally got to remove both the top Navigation and the footer widgets:
<?php
/**
* This file adds the Landing template to the Education Theme.
*
* @author StudioPress
* @package Education Pro
* @subpackage Customizations
*//*
Template Name: Landing
*///* Add landing body class to the head
add_filter( 'body_class', 'education_add_body_class' );
function education_add_body_class( $classes ) {$classes[] = 'education-landing';
return $classes;}
//* Force full width content layout
add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' );// 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_after_header', 'genesis_do_nav' );
remove_action( 'genesis_header', 'genesis_header_markup_close', 15 );
remove_action( 'genesis_before_content_sidebar_wrap', 'genesis_do_nav' );
remove_action( 'genesis_before_content_sidebar_wrap', 'genesis_do_subnav' );
remove_action( 'genesis_before_content', 'genesis_do_breadcrumbs' );//* Remove site footer widgets
remove_action( 'genesis_before_footer', 'genesis_footer_widget_areas' );//* Remove site footer elements
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 );//* Run the Genesis loop
genesis();The only thing I want to do now is to change the container width so that the text doesn't spread out so wide. I tried to use the one Brad Dalton suggested, but I didn't have any luck with it.
If you can help me with that, I will be ever so grateful and I'll leave you alone - at least temporarily 🙂
Thanks so very much.
Teresa
December 19, 2013 at 4:49 pm #80338nutsandbolts
MemberThe container is getting its width from the stylesheet - the
.full-width-content #content-sidebar-wrapis set to 100% and.full-width-content #contentis set to 1040px.Try adding this to your stylesheet to see if it works without breaking the other full width pages on the site (it shouldn't, but you never know):
/* Landing Pages ------------------------------------------------------------ */ .education-landing #content { width: 960px; margin: 0 auto; padding: 30px; } .education-landing #content-sidebar-wrap { width: 930px; }
Andrea Whitmer, Owner/Developer, Nuts and Bolts Media
I provide development and training services for designers • Find me on Twitter and Google+December 19, 2013 at 5:08 pm #80344Teresa
ParticipantThat definitely shrunk the container, the text still goes outside it. Is there a way to keep the text inside the container?
http://www.centerforempoweredwomen.com/thank-you-and-welcome/
You are an angel to help me like this. I deeply appreciate it.
Thanks.
Teresa
December 19, 2013 at 5:16 pm #80345nutsandbolts
MemberThis gets it a little closer, though it still isn't centered on the page (which is driving me crazy):
/* Landing Pages ------------------------------------------------------------ */ .education-landing #content { width: 900px; margin: 0 auto; padding: 40px; } .education-landing #content-sidebar-wrap { width: 960px; }
Andrea Whitmer, Owner/Developer, Nuts and Bolts Media
I provide development and training services for designers • Find me on Twitter and Google+December 19, 2013 at 5:25 pm #80347nutsandbolts
MemberTry this one:
/* Landing Pages ------------------------------------------------------------ */ .education-landing #content { width: 900px; margin: 0 auto !important; padding: 40px; } .education-landing #content-sidebar-wrap { width: 960px; } .education-landing .wrap { width: 960px !important; }
Andrea Whitmer, Owner/Developer, Nuts and Bolts Media
I provide development and training services for designers • Find me on Twitter and Google+December 19, 2013 at 5:27 pm #80348Teresa
ParticipantYou did it!
http://www.centerforempoweredwomen.com/thank-you-and-welcome/
How can I ever thank you??
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.