Remove page title for landing page

Community Forums Forums Design Tips and Tricks Remove page title for landing page

This topic is: not resolved

This topic contains 1 reply, has 2 voices, and was last updated by  braddalton 1 year ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #79830

    Lorreli
    Member

    I am creating a landing page. I have removed the header but the title to the page still shows above the text of the page. I want to remove it. I am new at using Genesis and haven’t learned much about coding with it yet.

    http://coachingfromspiritinstitute.com/Sales/6-month-vip-opt-in/
    #79843

    braddalton
    Participant
    Post count: 10683

    Use something like this:

    [php]
    <?php
    /**
    * This file adds the Landing template to the Magazine Pro Theme.
    *
    * @author StudioPress
    * @package Magazine Pro
    * @subpackage Customizations
    */

    /*
    Template Name: Landing
    */

    //* Add custom body class to the head
    add_filter( ‘body_class’, ‘magazine_add_body_class’ );
    function magazine_add_body_class( $classes ) {

    $classes[] = ‘magazine-landing';
    return $classes;

    }

    //* Force full width content layout
    add_filter( ‘genesis_pre_get_option_site_layout’, ‘__genesis_return_full_width_content’ );

    //* Remove navigation
    remove_action( ‘genesis_before_header’, ‘genesis_do_nav’ );
    remove_action( ‘genesis_after_header’, ‘genesis_do_subnav’ );

    //* Remove site header elements
    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 breadcrumbs
    remove_action( ‘genesis_before_loop’, ‘genesis_do_breadcrumbs’ );

    //* Remove the entry title (requires HTML5 theme support)
    remove_action( ‘genesis_entry_header’, ‘genesis_do_post_title’ );

    //* 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();
    [/php]

    Change the custom body class if needed.

    You don’t need to add a page title.


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

You must be logged in to reply to this topic.