Landing Page Plugin

Community Forums Forums Design Tips and Tricks Landing Page Plugin

This topic is: resolved

This topic contains 19 replies, has 2 voices, and was last updated by  Teresa 8 months, 1 week ago.

Viewing 15 posts - 1 through 15 (of 20 total)
  • Author
    Posts
  • #79780

    Teresa
    Participant
    Post count: 29

    I 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.com
    #79793

    nutsandbolts
    Moderator
    Post count: 3119

    Brad 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, Nuts and Bolts Media
    I provide dev and training services for web designers • Find me on Twitter and Google+

    #79808

    Teresa
    Participant
    Post count: 29

    I 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

    #79870

    nutsandbolts
    Moderator
    Post count: 3119

    All 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, Nuts and Bolts Media
    I provide dev and training services for web designers • Find me on Twitter and Google+

    #79939

    Teresa
    Participant
    Post count: 29

    The 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

    #79940

    nutsandbolts
    Moderator
    Post count: 3119

    Darn! 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, Nuts and Bolts Media
    I provide dev and training services for web designers • Find me on Twitter and Google+

    #79960

    Teresa
    Participant
    Post count: 29

    I’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();

    #80044

    nutsandbolts
    Moderator
    Post count: 3119

    That 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, Nuts and Bolts Media
    I provide dev and training services for web designers • Find me on Twitter and Google+

    #80067

    Teresa
    Participant
    Post count: 29

    I 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

    #80068

    nutsandbolts
    Moderator
    Post count: 3119

    Try adding this:

    remove_action( 'genesis_after_header', 'genesis_do_nav' );


    Andrea Whitmer, Owner, Nuts and Bolts Media
    I provide dev and training services for web designers • Find me on Twitter and Google+

    #80072

    Teresa
    Participant
    Post count: 29

    Does it matter where I add it?

    Thanks.

    Teresa

    #80101

    nutsandbolts
    Moderator
    Post count: 3119

    It shouldn’t matter, no. *crosses fingers*


    Andrea Whitmer, Owner, Nuts and Bolts Media
    I provide dev and training services for web designers • Find me on Twitter and Google+

    #80203

    Teresa
    Participant
    Post count: 29

    It 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

    #80314

    nutsandbolts
    Moderator
    Post count: 3119

    Your 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, Nuts and Bolts Media
    I provide dev and training services for web designers • Find me on Twitter and Google+

    #80330

    Teresa
    Participant
    Post count: 29

    I 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

Viewing 15 posts - 1 through 15 (of 20 total)

You must be logged in to reply to this topic.