Swank theme: add landing page

Community Forums Forums Design Tips and Tricks Swank theme: add landing page

This topic is: not resolved

This topic contains 2 replies, has 2 voices, and was last updated by  Viviwat 4 months, 3 weeks ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #112639

    Viviwat
    Participant
    Post count: 2

    Hello

    I want to add a landing page to the Swank theme, so I’ve uploaded a file named page_landing.php with the following code:

    <?php

    /*
    Template Name: Landing
    */

    // Add custom body class to the head
    add_filter( ‘body_class’, ‘add_body_class’ );
    function add_body_class( $classes ) {
    $classes[] = ‘landing-page’;
    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’ );
    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();

    It’s worked fine, but now i also want to remove the top nav bar and the secondary navigation at the bottom. What code do I need to add?

    Thanks for your help.

    http://www.vivianwatson.com/miembros
    #112644

    braddalton
    Participant
    Post count: 10568
    #112646

    Viviwat
    Participant
    Post count: 2

    OK, I managed to do it. Now I want to center the headlines and change the landing page width. How can I do that? Thank you!

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

You must be logged in to reply to this topic.