How to code static home page

Everything else!

How to code static home page

Postby Carthago » Sun Oct 30, 2011 7:07 am

Hi all,
I hope to receive some help and tips about 'how to code a static' home page.

What I want is to keep the header info and the footer info, but all what is between I want to code by myself.

See below the html of the page as in dashboard.

Code: Select all
<?php get_header(); ?>
<div id="content">      
   <?php /* If this is a category archive */  if (is_category()) { ?>
   <div class="notice"><p>You are currently browsing the <?php single_cat_title(''); ?> category.</p></div>

   <?php /* If this is a yearly archive */ } elseif (is_day()) { ?>
   <div class="notice"><p>You are currently browsing the archives for the day <?php the_time('l, F jS, Y'); ?>.</p></div>

   <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
   <div class="notice"><p>You are currently browsing the archives for <?php the_time('F, Y'); ?>.</p></div>

   <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
   <div class="notice"><p>You are currently browsing the archives for the year <?php the_time('Y'); ?>.</p></div>

   <?php /* If this is a monthly archive */ } elseif (is_search()) { ?>
   <div class="notice"><p>You searched for <strong><?php the_search_query(); ?></strong>, here are your results: </p></div>

   <?php } ?>
   
   <?php if (have_posts()) : ?>

   <?php while (have_posts()) : the_post(); ?>
      <div class="post" id="post-<?php the_ID(); ?>">
         <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
         
         <p><?php the_content('Lees verder...'); ?></p>

      </div>
   <?php endwhile; ?>
   <?php else : ?>
   <div class="post" id="post-<?php the_ID(); ?>">
      <h2>Nothing to see here</h2>
      <p>You seemed to have found a mislinked file, page, or search query with zero results. If you feel that you've reached this page in error, double check the URL and or search string and try again.</p>
      <p>Alternatively, a more personalized method of tracking down and searching for content can be found <a href="#bottom_box">below</a>.</p>
   </div>
   <?php endif; ?>
   <?php do_action("ppc"); ?>
<?php wp_pagenavi(); ?>
   <div class="clear"></div>
</div>
                     
<?php get_sidebar(); ?>


- What code I can remove?

Thanks for help, links to other posts and tips.

Carthago
Carthago
I'm a regular
 
Posts: 7
Joined: Wed Feb 23, 2011 6:37 pm

Return to Announcements and General Support for Slidingdoor Themes



cron