Custom Page Template- custom header and no navigation menu

  • Anonymous

    #8211

    I’m trying to create a custom page template with no navigation menu, a custom header for the specific page, one column/no sidebar and no footer “widgets”.

    I tried this for the page template:

    <?php
    /**
    * Template Name: Squeeze Page Template
    *
    * A custom page template without sidebar.
    *
    * @package Graphene
    * @since Graphene 1.0.5
    */

    include ('http://alisonjkay.com/wp-content/themes/graphene/header-squeezepage.php');
    ?>

    <?php

    /* Run the loop to output the pages.
    * If you want to overload this in a child theme then include a file
    * called loop-page.php and that will be used instead.
    */
    the_post();
    get_template_part( 'loop', 'page' );
    ?>

    <?php get_footer(); ?>

    and this is how I set-up the custom header file:

    <?php

    /**

    * The Header for our theme.

    *

    * Displays all of the <head> section and everything up till <div id="content-main">

    *

    * @package Graphene

    * @since graphene 1.0

    */

    global $graphene_settings;

    ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

    <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>

    <head profile="http://gmpg.org/xfn/11">

    <meta http-equiv="Content-Type" content="<?php bloginfo( 'html_type' ); ?>; charset=<?php bloginfo( 'charset' ); ?>" />

    <meta http-equiv="X-UA-Compatible" content="IE=Edge" />

    <title><?php wp_title( '' ); ?></title>

    <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />

    <?php wp_head(); ?>

    </head>

    <body <?php body_class(); ?>>

    <?php if ( !get_theme_mod( 'background_image', false) && !get_theme_mod( 'background_color', false) ) : ?>

    <div class="bg-gradient">

    <?php endif; ?>

    <?php do_action( 'graphene_container_before' ); ?>

    <div id="container" class="container_16">

    <div id="header">

    <?php

    include ('http://alisonjkay.com/wp-content/uploads/2013/09/header2.jpg');

    ?>

    <?php /* The site title and description */

    if ( ! in_array( get_theme_mod( 'header_textcolor', HEADER_TEXTCOLOR ), array( 'blank', '' ) ) ) :

    if ( is_front_page() || is_home() ) {

    $title_tag = 'h1';

    $desc_tag = 'h2';

    } else {

    $title_tag = 'h2';

    $desc_tag = 'h3';

    }

    ?>

    <?php echo "<$title_tag class="header_title push_1 grid_15">"; ?>

    <?php if ( ! is_front_page() ) : ?><a href="<?php echo apply_filters( 'graphene_header_link' , home_url() ); ?>" title="<?php esc_attr_e( 'Go back to the front page', 'graphene' ); ?>"><?php endif; ?>

    <?php bloginfo( 'name' ); ?>

    <?php if ( ! is_front_page() ) : ?></a><?php endif; ?>

    <?php echo "</$title_tag>"; ?>

    <?php echo "<$desc_tag class="header_desc push_1 grid_15">"; ?>

    <?php bloginfo( 'description' ); ?>

    <?php echo "</$desc_tag>"; ?>

    <?php endif; ?>

    </div>

    </div>

    </div>

    <div id="content" class="clearfix hfeed">

    <?php do_action( 'graphene_before_content-main' ); ?>

    <div id="content-main" <?php graphene_grid( 'clearfix', 16, 11, 8 ); ?>>

    I’m stumped – this is the 5th combination I’ve tried for this. I just need a one column, no menu, custom header/banner graphic, no footer widgets – just the copyright, etc… — I’ve done this with other themes and just can’t seem to get it to work with Graphene. Can anyone help?

    Liz

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.