WordPress.org

Ready to get started?Download WordPress

Forums

How to Make Static Home Page (2 posts)

  1. tanji
    Member
    Posted 4 years ago #

    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.

    Link: http://www.onlineschoolchoice.com/

    <!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>" title="<?php bloginfo('name'); ?>"><?php bloginfo('name'); ?></h1>

    " 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'); ?>" />

    "" ) { 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); ?>

    </div><!-- /header -->

    <div id="nav">

    <ul id="pagenav">

    <li class="<?php if ( is_home() ) { echo 'current_page_item'; } ?>">" title="<?php bloginfo('name'); ?>"><span class="left"></span><?php _e('Home',woothemes); ?><span class="right"></span>

    <?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 } ?>>" title="<?php _e('Blog',woothemes); ?>"><span class="left"></span><?php _e('Blog',woothemes); ?><span class="right"></span><?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=<span class="left"></span>' . __('Blog',woothemes) . '<span class="right"></span>'); ?><?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' ) ); ?>

    </div><!-- /nav -->

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

  2. jvinch
    Member
    Posted 4 years ago #

    How about just creating a page - and setting that page as your front page default under settings/reading -?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags