• Hi guys,
    First: I am a Noob πŸ˜‰
    Second: I have a short question:
    I would like to display a different page before my actual WordPress-Blog.
    So I copied the content of my index.php into another file (main.php) and put the code of my new welcome page in the index.php with a link to the main.php (which includes the old index.php with the wordpress content).

    It seems to work, but not completely – The header of my wordpress blog is missing now πŸ™
    Any idea what had happend there and how to fix that?

    Thanks a lot
    Andy

Viewing 9 replies - 1 through 9 (of 9 total)
  • make index.html file

    What, exactly, are you trying to do? Do you just want to display a static Page as your site’s Front Page?

    Thread Starter Andband2

    (@andband2)

    @xplode11: I already tried putting an additional index.html (with a link to the php-file) before, but this doesn’t work the right way:
    The browser now opens and displays the index.html. Thats fine so far. But when I click on the link to the php-file in the html-file (which is coded like that: “<p>Continue To Site</p>”), it just reloads the very same index.html πŸ™ – if you can tell me how to eliminate that, my problem would be solved πŸ™‚

    @chip Bennett: Yes, I want to display a static (non WordPress) page as my Front Page which has a link to the acutal WordPress-page

    Do you want a static page without a menu Which you can lay-out the way you want?
    Try atahualpa theme, here you can turn off the menu for your frontpage.

    Thread Starter Andband2

    (@andband2)

    Yes I want a page without a menu that I can lay-out the way I want. ANd it has to be completely independent of the wordpress stuff (wordpress is already finishe, so I can’t use a new theme there..)

    can’t you shut down menu for a single page in your theme, and mak it your frontpage?

    Thread Starter Andband2

    (@andband2)

    how do I shut down the menu for a single page?

    If you are trying to create a page totally independent (excluding the header and footer), you can either put your wordpress files in a separate folder such as http://yourdomain.com/blog

    Or, you can create a page with a custom template, and use that as your front page. Read this guide: http://joe-riggs.com/blog/2009/07/create-blank-page-for-wordpress-blog-using-your-theme-template/

    Alternatively, you can use this code:

    <?php
    /*
    Template Name: My Page
    */
    ?>
    <?php get_header(); ?>
    <div id="content">
    
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    
    [ your markup goes here ]
    
    <?php endwhile; endif; ?>
    
    </div>
    <?php get_sidebar(); ?>
    
    <?php get_footer(); ?>

    Remove the get sidebar, get footer and get header, and also the div id content and just add your own markup within the page. Then call that template when creating the page and make it your main page.

    Thread Starter Andband2

    (@andband2)

    thanks futurepocket, I tried your first solution (moving it to a seperate folder) and it worked!!

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Displaying webpage before actual WordPress Theme’ is closed to new replies.