Do you know of any wordpress plugin that can do this?

18 replies
Hello warriors,

I am currently working on a wordpress site, and then I want to change my homepage with an html file.

Is this possible that I will make a "home" page inside my wp-admin, then in that page, I want to set an html url? Then under Reading Settings, I am going to choose A static page then select that "home" page which has the html url. Is there a plugin that can do that? So, if you are going to visit my site, my home page will be that html file.

That is actually the concept of Niche Profit Classroom (NPC), only that we can't set a complete html url, only the name of the html page.

I hope that makes sense.

Thanks,
#plugin #wordpress
  • Profile picture of the author Brad Gosse
    Usually your home page is index.php. If you put a static index.html page on your server it should override your wp home.
    Signature
    {{ DiscussionBoard.errors[2652007].message }}
  • Profile picture of the author Ryah Albatros
    You don't need to make a html page for this, it can be done inside Wordpress as it is.

    First make a page for your front landing page - call it something like Front and enter your content into it as normal.

    Make another page called Blog (or anything else) for your regular posts. Don't enter any content, just publish it as is.

    In the General Settings area under Reading set your front page to Static and choose your front page made earlier. Then set your posts page to the second page you made, e.g. Blog from above.

    Save the changes and you're all set!
    {{ DiscussionBoard.errors[2652027].message }}
    • Profile picture of the author magiclouie
      Originally Posted by Ryah Albatros View Post

      You don't need to make a html page for this, it can be done inside Wordpress as it is.

      First make a page for your front landing page - call it something like Front and enter your content into it as normal.

      Make another page called Blog (or anything else) for your regular posts. Don't enter any content, just publish it as is.

      In the General Settings area under Reading set your front page to Static and choose your front page made earlier. Then set your posts page to the second page you made, e.g. Blog from above.

      Save the changes and you're all set!
      Thanks Ryah,..., but I have already created an html page, and I want this page to be my homepage. So, when you visit my site, www.sitename.com, that html page should be viewed. Is there any plugin that could do this?
      {{ DiscussionBoard.errors[2652843].message }}
  • {{ DiscussionBoard.errors[2652144].message }}
  • Profile picture of the author Kelly Verge
    Install WP in a folder. I.e. yoursite.com/blog.

    Then you just link to the blog from the home page and add a static link back to the home page within the blog.
    {{ DiscussionBoard.errors[2652867].message }}
    • Profile picture of the author snapcontent
      Originally Posted by Kelly Verge View Post

      Install WP in a folder. I.e. yoursite.com/blog.

      Then you just link to the blog from the home page and add a static link back to the home page within the blog.
      I'd go with this too - most control. Unless having the blog on your domain root is important to you. Good opportunity to for passing PR back from the subpages to your index page.
      {{ DiscussionBoard.errors[2652921].message }}
  • Profile picture of the author Kelly Verge
    You could probably install the blog in the root folder and put the index.html (or .htm) file in the same folder. Most (all?) hosts will display the .html file first if it exists.

    Even if that's not the case, you could edit the .htaccess file to force the issue.
    {{ DiscussionBoard.errors[2652968].message }}
  • Profile picture of the author mrpals
    Your static page can be edited with any editor you wish. Create the look anyway you want. It will not however tie to wp-content/themes unless you create the calls to css in the header of the html of the index or static page and you would have to enter the the theme url manually so your static page knows where to pull them from.

    Idea- open the index or home page you have now , view the source code, copy and paste as new page in your editor/ftp program i.e. dreamweaver. Then make the changes you want and save that as your new index. Sounds complicated but a simple 10 minutes job, I just aint no teacher and suck at splainen it :p
    {{ DiscussionBoard.errors[2652996].message }}
  • Profile picture of the author Ryah Albatros
    I'm probably not understanding exactly what you want, but I think you're making this far too complicated.

    Why can't you put all the elements of your html page into one in Wordpress and do the static page change? Then you wouldn't have any problem with the index.php file being overridden.

    I'm not sure about a complete change of theme John, but I know there's a plugin to change headers doe different pages - Dynamic Headers, you can find it by searching the plugins.

    If you want more than just a header change then you can make a page template with your desired theme and upload it as a template to use.
    {{ DiscussionBoard.errors[2653411].message }}
  • Profile picture of the author cma01
    Are you wanting the static HTML file entirely standalone or the content to pull into the Wordpress theme?

    If it is the first, then you really don't need to do anything other than save the file in your domain root as index.html. Then in your .htaccess file at the beginning, put

    DirectoryIndex index.html

    Now any time you go to your root domain, it will display that page.

    But if you want specific content in your home page, there are a couple of ways you can do it.

    Install and enable the TinyMCE plugin for Wordpress and set it so that it doesn't strip out all your formatting. Then take the content of the HTML file you created, create a new page in Wordpress and paste it in. The formatting should all remain the same. Then go to your Wordpress settings select that page as your default home page.

    If there is more "stuff" in the HTML file that would get stripped out even using an editor, the next easiest thing to do is to add a file, home.php, to your Wordpress theme and put the content of your HTML file there . . . just the content portion of the file, it will still call the Wordpress theme header and footer.

    I know NPC recommends that, but it's never made that much sense to me.

    I tried creating an index.html and still having the index.php in the same folder.

    The result is that index.html was used anytime index.php should have been used thus making the wordpress not work.

    I am sure there is a way to work around this.
    I just went back and read this. If that is happening, then just name the file myhomepage.html or something like that and set it as the default page in the htaccess.

    Although if you have a Wordpress site, I think it's always better to work with Wordpress than fight against it. I would just create it as a page.

    Is there a way to assign a different theme to the static page then the rest of the blog?
    Yes, you just create a Wordpress page template and then select that template when you edit the Wordpress page. It can look like whatever you want as long as you include the content calls in the file.

    Here is a tutorial in the Wordpress Codex on creating your own page templates
    Signature
    "Wise men talk because they have something to say; fools, because they have to say something."
    ~ Plato
    {{ DiscussionBoard.errors[2653460].message }}
    • Profile picture of the author cma01
      Some how my post was posted twice
      Signature
      "Wise men talk because they have something to say; fools, because they have to say something."
      ~ Plato
      {{ DiscussionBoard.errors[2653500].message }}
      • Profile picture of the author SteveJohnson
        Originally Posted by cma01 View Post

        Some how my post was posted twice
        Just means it was doubly important, yes?
        Signature

        The 2nd Amendment, 1789 - The Original Homeland Security.

        Gun control means never having to say, "I missed you."

        {{ DiscussionBoard.errors[2653650].message }}
  • Profile picture of the author ChrisCree
    Probably the best way to do this is to create a page template for your home page like CMA01 says above.

    Add that page template to your theme file. Then create your home page within WordPress and select your new page template from your page edit screen. (It's in a drop down on the right hand side under the "Publish" button.)

    Set that new page as your static home page under your Settings --> Reading menu.

    You can give that page template a unique CSS ID and then style the page completely differently from the rest of your WordPress theme. Just add the styling for that ID to your style.css file.
    {{ DiscussionBoard.errors[2653761].message }}
  • Profile picture of the author BillLudwig
    Another very easy way to get a static homepage with Wordpress is to create a new php file named home.php and add that to the current template directory. Wordpress will automatically use that file as the homepage. You can use all the Wordpress template tags, include the loop, or whatever you like.

    This way you don't have to worry about changing any of the other template files or editing .htaccess to make index.html work.
    {{ DiscussionBoard.errors[2653857].message }}
  • Profile picture of the author mookinman
    Upload .html file, it will prioritze over index.php
    {{ DiscussionBoard.errors[2653864].message }}

Trending Topics