WordPress.org

Forums

How to add an independent Dreamweaver html page to existing wordpress site (6 posts)

  1. mellabee
    Member
    Posted 10 months ago #

    Hi,
    I'd like to add a page to my wordpress site.
    I am creating a "homepage" of sorts for a friends wedding.
    It will be one page with the invite image, links to accommodation and an RSVP button to reply via email and a link to google maps.

    I want it to be like this http://www.mysite.com/brideandgroom and I don't want the page to go on my business website's menu.

    Which is easier? Create an html page using Dreamweaver and upload it like you would if it wasn't a wordpress site. Is this possible?

    or, create a new page template.

    My experience is a little above basic. I have done some customising of wordpress.

    Any advice greatly appreciated.
    Thanks

  2. Max
    Member
    Posted 10 months ago #

    If you want it to be your home page, then you cannot simply upload it. If you want it to be anything else, you can as the WordPress permalinks .htaccess checks to see if a file exists before sending the request to WordPress.

    So, simplest thing, is to make your static home page, save it in a file called "home.php" and upload it to the directory in which your theme is located under wp-content/themes.

    WordPress will load it for the blog front page, if it exists, and if it has no template tags, it will just display as a static page. Make sure any links you put on it link to pages in your WordPress site.

    Its quick and dirty, but will probably server your short term need.

  3. Which is easier? Create an html page using Dreamweaver and upload it like you would if it wasn't a wordpress site. Is this possible?

    For what it's worth, as long as that page isn't index.html, sure, you can do that just fine.

    If its the index though, no you can't. You need to make a page template.

  4. mellabee
    Member
    Posted 10 months ago #

    Thanks for your feedback.

    I created a page in dreamweaver and uploaded it in the same level as index.php etc

    It works, although I'd love to not have to type in .html for it to work.
    Can I get rid of this?

    Thanks again

    site is pikopiko.com.au/nickandsarah.html

  5. fonglh
    Member
    Posted 10 months ago #

    Just create it as a normal 'Page' in your WordPress site. Based on your initial description it shouldn't be that hard to do.

    You could also modify your .htaccess file, but that would cause problems should you ever decide to have a nickandsarah page in your WordPress site.

  6. michael.mariart
    Member
    Posted 10 months ago #

    It works, although I'd love to not have to type in .html for it to work.
    Can I get rid of this?

    That will depend on the server that you're running, but most likely yes. The easiest way to do it is to add a new redirect rule into your .htaccess file.

    Now, I haven't tested this at all, but it's something like...

    RewriteBase /nickandsarah
    RewriteRule ^nickandsarah.html$ - [L]

Reply

You must log in to post.

About this Topic