• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Custom Page Template and Adding Div

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › Custom Page Template and Adding Div

This topic is: not resolved
  • This topic has 1 reply, 2 voices, and was last updated 11 years, 3 months ago by Genesis Developer.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • November 4, 2014 at 11:42 pm #130542
    mrhiking
    Member

    Hi -

    I created a custom page template (using Brad Dalton's code) and want to add a Wufoo form code to the bottom of the page template.

    Any idea what I'm doing wrong?

    <?php
    /**
     * This file adds a custom Landing Page template to any Genesis child theme. 
     * It includes a function to display a custom header image pulled from your images folder.
     *
     * @author    Brad Dalton
     * @example   http://wpsites.net/web-design/add-unique-header-image-to-custom-landing-page-template-for-genesis/
     * @copyright 2014 WP Sites
     */
    
    /*
    Template Name: NL Ruman Wufoo 1
    */
    
    //* Add landing body class to the head
    add_filter( 'body_class', 'wpsites_landing_body_class' );
    function wpsites_landing_body_class( $classes ) {
    
    	$classes[] = 'wpsites-landing-page';
    	return $classes;
    
    }
    
    //* Force full width content layout
    add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' );
    
    //* Remove default site header 
    remove_action( 'genesis_header', 'genesis_do_header' );
    
    //* Add Custom Landing Page Header Image From Images Folder
    add_action( 'genesis_header', 'landing_page_header_image' );
    
    function landing_page_header_image() {
    
            echo '<img class="landing-header">';
            echo '<a href="' . esc_url( home_url( '/' ) ) . '"><img src="' . get_stylesheet_directory_uri() . '/images/national-life.jpg" /></a>';
            echo '</img>';
    }
    
    //* Remove navigation
    remove_action( 'genesis_after_header', 'genesis_do_nav' );
    remove_action( 'genesis_after_header', 'genesis_do_subnav' );
    
    //* Remove breadcrumbs
    remove_action( 'genesis_before_loop', '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 );
    
    function wufoo() {
     echo '<div>';
            echo 'Wufoo';
            echo '</div>';
    }
    
    //* Run the Genesis loop
    genesis();
    
    
    November 5, 2014 at 12:00 am #130543
    Genesis Developer
    Member

    add this line

    add_action( 'genesis_footer', 'wufoo' );


    Download Genesis Featured Posts Combo Widget | Simple Grid Layouts Plugin for Posts, CPTs and terms
    You can request new tips/help.

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble