• So I just re-built my front page in Dreamweaver.
    I changed the name of “index.php” in my root folder (where I have WP installed) and uploaded the index.html file that I created on my computer.

    Now when I uploaded it, it worked fine. However, all other WP pages became inactive.

    How do I fix this in the easiest, fastest way possible?

    I want to use my own .html file as the homepage, where as the rest of the site should be like it was (meaning: run on WordPress).

    Would be really thankful for any suggestions.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Your index.php is like the foundation for the wordpress site. I would recommend moving the index.php back in there, and then move the whole site to a subdirectory and link it there (that requires a little bit of coding work).

    Then, your index.html will home free and the rest of the site will still work properly.

    Thread Starter stolpioni3

    (@stolpioni3)

    Thanks for the answer.

    What about this:

    I change the index.php to my index.html file, then when someone clicks a link on the html file (which links to the WordPress pages), the code that was in the original index.php gets loaded and the visitor is sent to a fully-working (and loaded version) of my regular WordPress site.

    Is this possible to do? (No good at coding).

    The worst part with migrating the WP stuff to a subdirectory is that it’s probably going to be a real pain in the butt. I run a membership site so there’s a lot of data to move.

    the html file works when it’s like this: mysite.com/mynewpage.html

    Maybe there’s a way to re-direct to that page (without showing the /mynewpage.html) when someone clicks in on mysite.com?

    I’m sure you may have your reasons for wanting to do this, but I’m going to throw this out there. Wouldn’t it make more sense to set WordPress to use a static page for the Front Page (via Settings->Reading) and putting your html there (obviously with a little conversion) and then set a different page to be your blog (also via Settings->Reading)?

    The loading script idea is pretty intense. I think script runner puts a good point on the static page. The only thing would be just how drastic the page is from your other pages.

    How drastic is your change?

    stolpioni3,

    This is a fairly simple fix:

    1. Revert all the changes you made to WordPress’s files back to how they were (in other words, leave “index.php” alone.)
    2. Create a page called “home”
    3. Go into Settings->Reading and set the Front Page to “home”
    4. In your theme folder, create a file called “page-home.php” and dump all of your code in there

    WordPress will load that file on your websites home page and output whatever code you put there.

    That said, I’m not a huge proponent of Dreamweaver and definitely would prefer to suggest that you just build your site as a theme.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Use html page as homepage instead of index.php, how?’ is closed to new replies.