I need to create a static home page for my wordpress site. actually i want the header section for this page without header image container.
So what i did was
1. add this to the css insert
Code:
.home div#imagecontainer {display:none;}
2. created a copy of index.php (wp-content\themes\mytheme\index.php) and rename it to "hometemplate.php". here is the codes showing on that file.
PHP Code:
<?php /* get all options: */
# error_reporting(-1);
include (TEMPLATEPATH . '/functions/bfa_get_options.php');
global $bfa_ata;
get_header(); ?>
<?php /* If there are any posts: */
if (have_posts()) : $bfa_ata['postcount'] = 0; /* Postcount needed for option "XX first posts full posts, rest excerpts" */ ?>
<?php /* This outputs the next/previous post or page navigation.
This can be edited at Atahualpa Theme Options -> Style & edit the Center column */
bfa_center_content($bfa_ata['content_above_loop']); ?>
<?php /* The LOOP starts here. Do this for all posts: */
while (have_posts()) : the_post(); $bfa_ata['postcount']++; ?>
<?php /* Add Odd or Even post class so post containers can get alternating CSS style (optional) */
$odd_or_even = (($bfa_ata['postcount'] % 2) ? 'odd-post' : 'even-post' ); ?>
<?php /* This is the actual Wordpress LOOP.
The output can be edited at Atahualpa Theme Options -> Style & edit the Center column */
bfa_center_content($bfa_ata['content_inside_loop']); ?>
<?php /* END of the LOOP */
endwhile; ?>
<?php /* This outputs the next/previous post or page navigation and the comment template.
This can be edited at Atahualpa Theme Options -> Style & edit the Center column */
bfa_center_content($bfa_ata['content_below_loop']); ?>
<?php /* END of: If there are any posts */
else : /* If there are no posts: */ ?>
<?php /* This outputs the "Not Found" content, if neither posts, pages nor attachments are available for the requested page.
This can be edited at Atahualpa Theme Options -> Style & edit the Center column */
bfa_center_content($bfa_ata['content_not_found']); ?>
<?php endif; /* END of: If there are no posts */ ?>
<?php bfa_center_content($bfa_ata['center_content_bottom']); ?>
<?php get_footer(); ?>
3. I have selected "hometemplate" (which is a duplicate of Atahualpa's index.php) for my home page.
then i add a table to it and a image along with it. when in runtime the table is appeared, but the image was not there. instead of the image it showing alt text for it. here is the code after my editing
PHP Code:
<?php
/*
Template Name: Home template
*/
?>
<?php /* get all options: */
# error_reporting(-1);
include (TEMPLATEPATH . '/functions/bfa_get_options.php');
global $bfa_ata;
get_header(); ?>
<table width="990" border="0">
<tr>
<td height="110" colspan="3"><img src="custom_images/home.jpg" width="990" height="330" alt="home_banner" /></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
<?php get_footer(); ?>
------------------------------------------------------------------------------------------------
I am runing this site on my localhost (wamp). Please help me