Jump to content

Header and Contact Form Wordpress


HelpfulGuy

Recommended Posts

Hi all,

 

I am a beginner at coding and have become somewhat proficient understanding code in relation to Wordpress.  I am slowly reaching my wits end.  In the beginning I hired someone with a better understanding who developed the code for my wordpress website.  Now I have to make changes and I am having problems.  Here is the scenario.  Essentially I have to make a contact form that does not utilize any sidebars or ads, banners etc on the side.  I think the coder put it into the header.php. I think the header may be calling other forms.  I essentially made two forms so I would not mess with the rest of my site please help.  I made a contact_two.php and header_two.php.  I will place both in here.  The problem is when I call the Header_Two in the contact form I get the fatal error line six which i will bold below.

 

 

Contact Form

 

<?php

/*

Template Name: Contact Page

*/

?>

<?php get_header_two(); ?>

 

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

<div id="inner">

 

<?php if (have_posts()) : while (have_posts()) : the_post(); // the loop ?>

 

 

<!--post title-->

<h1 id="post-<?php the_ID(); ?>"><?php the_title(); ?></h1>

 

<!--post text with the read more link-->

<?php the_content(); ?>

<!--the contact form code-->

<?php if ( ! empty( $GLOBALS['ithemes_contact_page'] ) ) : ?>

<?php $GLOBALS['ithemes_contact_page']->render(); ?>

<?php endif; ?>

 

<!--for paginate posts-->

<?php link_pages('<p><strong>Pages:</strong> ', '</p>', 'number'); ?>

 

    <?php //comments_template(); // uncomment this if you want to include comments template ?>

 

<?php endwhile; // end of one post ?>

<?php else : // do not delete ?>

 

<h3>Page Not Found</h3>

    <p>We're sorry, but the page you are looking for isn't here.</p>

    <p>Try searching for the page you are looking for or using the navigation in the header or sidebar</p>

 

    <?php endif; // do not delete ?>

 

</div>

<!--include sidebar-->

<?php include(TEMPLATEPATH."/r_sidebar_page.php"); ?>

</div>

 

<?php include(TEMPLATEPATH."/tabber.php"); ?>

 

<!--include footer-->

<?php get_footer(); ?>

 

 

Original Header did not change anything except name to header_two

 

<?php global $wp_theme_options; // at the top because we use the variables multiple times in this file ?>

 

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

 

<html xmlns="http://www.w3.org/1999/xhtml">

 

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

 

 

 

<!--The Title-->

 

<title><?php wp_title(''); ?><?php if(wp_title('', false)) { echo ' :: '; } ?><?php bloginfo('name'); ?></title>

 

 

 

<!--The Favicon-->

 

<link rel="shortcut icon" href="<?php bloginfo('template_directory'); ?>/favicon.ico" />

 

 

 

<!--The Meta Info-->

 

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

 

<?php wp_meta(); //we need this for plugins ?>

 

 

 

<!--The Stylesheets-->

 

<style type="text/css" media="screen">

 

    @import url( <?php bloginfo('stylesheet_url'); ?> );

 

    @import url(<?php bloginfo('stylesheet_directory'); ?>/css/dropdown.css);

 

    @import url(<?php bloginfo('stylesheet_directory'); ?>/css/jtabber.css);

 

    @import url(<?php bloginfo('stylesheet_directory'); ?>/css/custom.css);

 

</style>

 

<!--The Internet Explorer Specific Stuff-->

 

<!--[if lte IE 7]>

 

    <link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/css/lte-ie7.css" type="text/css" media="screen" />

 

<![endif]-->

 

<!--[if lt IE 7]>

 

    <link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/css/lt-ie7.css" type="text/css" media="screen" />

 

    <script src="<?php bloginfo('template_url'); ?>/js/dropdown.js" type="text/javascript"></script>

 

<![endif]-->

 

<?php

 

///////////////////////begin the insertion of the sidebar extend code

 

if(!is_front_page()) : ?>

 

<style type="text/css" media="screen">

 

#container { background: url(<?php bloginfo('stylesheet_directory'); ?>/images/container-bg-sidebar.gif) top center repeat-y; }

 

</style>

 

<?php endif;

 

///////////////////////end the insertion of the sidebar extend code

 

?>

 

 

 

<!--The RSS and Pingback-->

 

<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php if($wp_theme_options['feedburner_url']) echo $wp_theme_options['feedburner_url']; else bloginfo('rss2_url'); ?>" />

 

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

 

 

 

<?php wp_head(); //we need this for plugins ?>

 

</head>

 

 

 

<body>

 

 

 

<div id="container">

 

 

 

<div id="header" class="clearfix">

 

<div id="title"><a href="<?php bloginfo('url'); ?>"><?php bloginfo('title'); ?></a></div>

 

    <div id="desc"><?php bloginfo('description'); ?></div>

 

    <div id="banner"><?= adrotate_banner('3'); ?></div>

 

</div>

 

 

 

<?php wp_page_menu(); //takes default arguments from functions.php?>

Link to comment
https://forums.phpfreaks.com/topic/179883-header-and-contact-form-wordpress/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.