• Dorian Regester

    (@newwordpressuser123)


    I am having trouble editing the landing page template within the php file. I would like to add a widget area to the right side of the landing page, but only have the widget displayed on the landing page itself. The code for the landing page looks like this:

    <?php
    /**
    * This file adds the Landing template to the Outreach Child Theme.
    *
    * @author StudioPress
    * @package Generate
    * @subpackage Customizations
    */

    /*
    Template Name: Landing
    */

    // Add custom body class to the head
    add_filter( ‘body_class’, ‘outreach_add_body_class’ );
    function outreach_add_body_class( $classes ) {
    $classes[] = ‘outreach-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_after_header’, ‘genesis_do_nav’ );
    remove_action( ‘genesis_before_content_sidebar_wrap’, ‘genesis_do_subnav’ );
    remove_action( ‘genesis_after_header’, ‘genesis_do_breadcrumbs’);
    remove_action( ‘genesis_before_footer’, ‘outreach_sub_footer’, 5 );
    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();

    If i can not add a widget to the landing page template, I would like to add a contact for to the right side of the page, but have the contact form separate from the body text of the page. Please advise

  • The topic ‘Adding a widget or contact form to Landing Page Template’ is closed to new replies.