Support » Themes and Templates » Suppose I don't want the home page

  • I know this is a strange request – but my site is more of a book than a blog. Is there any way I can delete the home page? If I trash it – does is delete the whole site? I will want people to view the pages but not the home page.



Viewing 15 replies - 1 through 15 (of 30 total)
  • so what do you want people to see when they go to

    Good question. My plan is to have them see a website home page that will not look exactly like this but this is the general idea (It’s going to match the blog style better so it LOOKS like the same site)

    Then from there, I may have the same menu on the side – but at the very least, it will have a link to the preface of the blog.

    Does this make sense?

    The URL won’t be poouster59. I’m just building it with that URL. When I publish it, it will be

    so I guess keeping in your ‘book’ concept the “homepage” will be more of a “cover”? That’s still very much the ‘homepage’ just not a typical one.

    this might help static front page

    A “home” page is merely the page that is shown when someone uses just your site’s url (rather than a link to a specific Post or Page). As bythegram suggested, a static front page would seem to be the best choice (live example – NSFW)

    Yes,You have the idea. I thought I’d have more options for design with a regular home page. I don’t want the Welcome to The Heroic Self or the “date” by Poouster” or Posted in…”

    If I could get rid of the, Archives widgets on all pages I’d be happy. The only reason I’m making it a blog is the author wanted people to be able to post comments. This was the best way I knew of to be able to do that. If I made the cover with a non-wordpress web page I wouldn’t be able to support comments on the cover but I could live with that. However, I’d be willing to have a wordpress cover if I could just have a photo and maybe some text. No date or “posted by”.

    Sorry if this is confusing.

    I thought I’d have more options for design with a regular home page.

    Your only limitations are your HTML, PHP & CSS coding skills. You can create a specific template for your home page that will be applied automatically – front-page.php. It’s entirely up to you as to what blog functionality (if any) this template includes.

    Wow! Love your example. OK so maybe I CAN make a wordpress home page look pretty. Let me try this. Can you tell me how to get rid of the Archives widget? (on all pages)

    Thanks for your help.

    First of all, don’t edit the Twenty Ten theme. Create a child theme for your changes. Or turn your customised version into a new standalone theme. Then, in your new (child or standalone) theme, create a copy of the original Twenty Ten page.php file and call it front-page.php.


    /* Run the loop to output the page.
    * If you want to overload this in a child theme then include a file
    * called loop-page.php and that will be used instead.
    get_template_part( 'loop', 'page' );

    This pretty much gives you a blank slate. So – what do you want to do next? 😉

    Thanks. I’ll give this a try. I’m pretty new at this but I’m determined to learn.

    If it helps, the site I linked to as an example of static front page has the following in it’s front-page.php file:

    <?php get_header('front'); ?>
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <div <?php post_class();?>>
    <?php the_content(); ?>
    <?php endwhile; endif; ?>
    <?php get_footer('front');

    So it pulls in a custom header template file (called header-front.php) and a matching custom footer template file (footer-front.php). These three files plus a bit of CSS, an image and some text and you have a completely non-blog-like front page.

    Yes. Anything will help. If I get stuck, I’ll be back.

    If you haven’t checked it out already, I’d also suggest bookmarking Theme Development.

    Thank you. Your directions make sense and I’m making progress. I’m very new at CSS and I’m getting the error
    “Parse error: syntax error, unexpected ‘<‘ in /home/pooust5/public_html/blog/wp-content/themes/twentyten/front-page.php on line 35”

    OK so here’s the code:

     * The template for displaying all pages.
     * This is the template that displays all pages by default.
     * Please note that this is the WordPress construct of pages
     * and that other 'pages' on your WordPress site will use a
     * different template.
     * @package WordPress
     * @subpackage Twenty_Ten
     * @since Twenty Ten 1.0
    get_header(); ?>
    		<div id="container">
    			<div id="content" role="main">
    <?php get_header('front'); ?>
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <div <?php post_class();?>>
    <?php the_content(); ?>
    <?php endwhile; endif; ?>
    <?php get_footer('front');
    			</div><!-- #content -->
    		</div><!-- #container -->
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    Line “35” is </div><!– #content –>

    [Moderator Note: Please post code or markup snippets between backticks or use the code button. Or better still – use the pastebin. As it stands, your code may now have been permanently damaged/corrupted by the forum’s parser.]

    <?php get_footer('front');

    should be

    <?php get_footer('front');>

    you where missing the closing >

Viewing 15 replies - 1 through 15 (of 30 total)
  • The topic ‘Suppose I don't want the home page’ is closed to new replies.