1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to Make Static Home Page

Discussion in 'White Hat SEO' started by problogger99, Nov 26, 2009.

  1. problogger99

    problogger99 Junior Member

    Joined:
    Nov 13, 2009
    Messages:
    152
    Likes Received:
    1,400
    Hello i am using station theme 1.5 from woo themes.I have made My home and from reading made that static.But there is default home page.How to delete Home page to keep My home as default? Here is code of my header.php. There is no post.I have around 250 separate pages.

    Code:
    <!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">
    
    <title>
    <?php if ( is_home() ) { ?><?php bloginfo('name'); ?> | <?php bloginfo('description'); ?><?php } ?>
    <?php if ( is_search() ) { ?><?php bloginfo('name'); ?> | <?php _e('Search Results',woothemes); ?><?php } ?>
    <?php if ( is_author() ) { ?><?php bloginfo('name'); ?> | <?php _e('Author Archives',woothemes); ?><?php } ?>
    <?php if ( is_single() ) { ?><?php wp_title(''); ?> | <?php bloginfo('name'); ?><?php } ?>
    <?php if ( is_page() ) { ?><?php bloginfo('name'); ?> | <?php wp_title(''); ?><?php } ?>
    <?php if ( is_category() ) { ?><?php bloginfo('name'); ?> | <?php _e('Archive',woothemes); ?> | <?php single_cat_title(); ?><?php } ?>
    <?php if ( is_month() ) { ?><?php bloginfo('name'); ?> | <?php _e('Archive',woothemes); ?> | <?php the_time('F'); ?><?php } ?>
    <?php if (function_exists('is_tag')) { if ( is_tag() ) { ?><?php bloginfo('name'); ?> | <?php _e('Tag Archive',woothemes); ?> | <?php  single_tag_title("", true); } } ?>
    </title>
    
    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    
    <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php if ( get_option('woo_feedburner_url') <> "" ) { echo get_option('woo_feedburner_url'); } else { echo get_bloginfo_rss('rss2_url'); } ?>" />
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    
        <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo('stylesheet_directory'); ?>/css/reset.css" />
        <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo('stylesheet_directory'); ?>/css/960.css" />
        <link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_url'); ?>" media="screen" />
        
        <!--[if IE 7]>
            <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo('stylesheet_directory'); ?>/ie7.css" />
        <![endif]-->
    
        <!--[if IE 6]>
            <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo('stylesheet_directory'); ?>/ie6.css" />
            <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/includes/js/pngfix.js"></script>
        <![endif]-->
    
    <?php if ( is_single() ) wp_enqueue_script( 'comment-reply' ); ?>
    <?php wp_head(); ?>
    
    <?php if ( get_option( 'woo_homepage' ) == 'layout-magazine.php' OR get_option( 'woo_slider' ) == 'true' ) {
    
    
    $autostart = get_option('woo_slider_autostart');
    $contclick = get_option('woo_slider_contclick');
    $sliderspeed = get_option('woo_slider_sliderspeed');
    $autoheight = get_option('woo_slider_autoheight');
    
    
    if($autostart == ''){
        $autostart = 0;
        $contclick = 'false';
        $sliderspeed = 300;
        $autoheight = 'true';
    }
    
    
    
    ?>
    <script type="text/javascript" charset="utf-8">
        jQuery(function(){
            jQuery('#slider').loopedSlider({
                'container':'.scroll',
                'slides':'.scrollContainer',
                
                'containerClick':<?php echo $contclick; ?>,
                'autoStart':<?php echo $autostart; ?>,
                'slidespeed':<?php echo $sliderspeed; ?>,
                'autoHeight':<?php echo $autoheight; ?>
                });
        });
    </script>
    
    <?php
    } ?>
    
     
    </head>
    
    <body>
    
    <div id="header">
    
        <h1><a href="<?php bloginfo('url'); ?>" title="<?php bloginfo('name'); ?>"><?php bloginfo('name'); ?></a></h1>
        
        <a href="<?php bloginfo('url'); ?>" title="<?php bloginfo('name'); ?>">
            <img src="<?php if ( get_option('woo_logo') <> "" ) { echo get_option( 'woo_logo' ); } else { bloginfo('stylesheet_directory'); ?>/img/logo.png<?php } ?>" alt="<?php bloginfo('name'); ?>" />
        </a>
        
        <a id="subscribe" href="<?php if ( get_option('woo_feedburner_url') <> "" ) { echo get_option('woo_feedburner_url'); } else { echo get_bloginfo_rss('rss2_url'); } ?>" title="<?php _e('Subscribe to our RSS feed',woothemes); ?>"><?php _e('Subscribe to our RSS feed',woothemes); ?></a>
        
    </div><!-- /header -->
    
    <div id="nav">
        
        <ul id="pagenav">
        
            <li class="<?php if ( is_home() ) { echo 'current_page_item'; } ?>"><a href="<?php bloginfo('url'); ?>" title="<?php bloginfo('name'); ?>"><span class="left"></span><?php _e('Home',woothemes); ?><span class="right"></span></a></li>
            
            <?php if ( get_option('woo_blog_navigation') == 'true' && get_option('woo_blog_subnavigation') == 'false') { ?><li <?php if ( is_category() || is_single() || is_tag() || is_archive() ) { ?> class="current_page_item" <?php } ?>><a href="<?php echo get_option('home'); echo get_option('woo_blog_permalink'); ?>" title="<?php _e('Blog',woothemes); ?>"><span class="left"></span><?php _e('Blog',woothemes); ?><span class="right"></span></a></li><?php } ?>
            
            <?php if ( get_option('woo_blog_subnavigation') == 'true' && get_option('woo_blog_navigation' ) == 'true' ) { ?><?php wp_list_categories('child_of=' . get_option( 'woo_blog_cat_id' ) . '&hide_empty=true&title_li=<a href="' . get_option('home') . get_option('woo_blog_permalink') .'" title="' . __('Blog',woothemes) . '"><span class="left"></span>' . __('Blog',woothemes) . '<span class="right"></span></a>'); ?><?php } ?>
            
            <?php $exclude = woo_exclude_pages(); ?>
            <?php wp_list_pages('sort_column=menu_order&depth=0&title_li=&link_before=<span class="left"></span>&link_after=<span class="right"></span>&exclude=' . $exclude . ',' . get_option( 'woo_exclude_pages_main' ) ); ?>
        
        </ul>
        
    </div><!-- /nav -->
    
    <div id="container" class="container_12">
     
    Last edited: Nov 26, 2009
  2. soulfly

    soulfly Junior Member

    Joined:
    Nov 20, 2008
    Messages:
    118
    Likes Received:
    138
    Location:
    BHW
    You may change Home page order (the page you want to see as home page) from admin panel. Figure it out.