Can you create an HTML page from a WP theme?

15 replies
I have a question. Not being a web designer, I was wondering if you could create a static HTML page of the home page from a Wordpress theme?

For example: I'm having a new WP theme designed to be used with a keyword rich domain name for a business. People will search & find that domain on the WP themed site. But the business owner thinks people search for him via his business name (only people who know him do). I want to create a single HTML page (a guess it would be a minisite) that looks EXACTLY like the home page on the keyword rich WP site, but the HTML page would have the business name URL. The links on the HTML page would go to the internal pages on the WP themed site. Right now, the business name URL is just a redirect to the (temporary) keyword rich site.

I hope I'm making sense. :confused:

Thanks,
#create #html #page #theme
  • Profile picture of the author Istvan Horvath
    Open the home/main page of the WP blog. Right click anywhere on the page - select View Source (code). In the opening window select all > Copy.

    In an empty Notepad file paste what you just copied. Save it as whatever.html - you are done.
    Signature

    {{ DiscussionBoard.errors[1993962].message }}
    • Profile picture of the author butters
      Originally Posted by Istvan Horvath View Post

      Open the home/main page of the WP blog. Right click anywhere on the page - select View Source (code). In the opening window select all > Copy.

      In an empty Notepad file paste what you just copied. Save it as whatever.html - you are done.
      That doesn't work... A wordpress is pulling in all sorts of PHP files to make it work, by using a HTML, you are scrapping the whole PHP from it and it becomes a messed up page and looks nothing like the WP theme.

      To the OP, I don't know how to turn a WP into a static HTML.

      Here is my thinking though , you can't have two home pages for starters anyway (Unless its 2 domains.) So why not just write an article for a page on the site, SEO for his company name and just have it as blahblah.com/blah.
      {{ DiscussionBoard.errors[1993974].message }}
      • Profile picture of the author Istvan Horvath
        Originally Posted by butters View Post

        That doesn't work... A wordpress is pulling in all sorts of PHP files to make it work, by using a HTML, you are scrapping the whole PHP from it and it becomes a messed up page and looks nothing like the WP theme.

        To the OP, I don't know how to turn a WP into a static HTML.

        Here is my thinking though , you can't have two home pages for starters anyway (Unless its 2 domains.) So why not just write an article for a page on the site, SEO for his company name and just have it as blahblah.com/blah.
        Read the OP before saying it doesn't work. It is 2 domains! And don't tell me what can or cannot be done in WP!

        I want to create a single HTML page (a guess it would be a minisite) that looks EXACTLY like the home page on the keyword rich WP site, but the HTML page would have the business name URL.
        Signature

        {{ DiscussionBoard.errors[1993985].message }}
        • Profile picture of the author butters
          I'll test more I guess...
          {{ DiscussionBoard.errors[1994006].message }}
      • Profile picture of the author Lee Wilson
        Originally Posted by butters View Post

        That doesn't work... A wordpress is pulling in all sorts of PHP files to make it work, by using a HTML, you are scrapping the whole PHP from it and it becomes a messed up page and looks nothing like the WP theme.

        To the OP, I don't know how to turn a WP into a static HTML.

        Here is my thinking though , you can't have two home pages for starters anyway (Unless its 2 domains.) So why not just write an article for a page on the site, SEO for his company name and just have it as blahblah.com/blah.
        Istvan is right. What's in the source IS the html.

        If what you do looks messed up then you probably forgot to take the css with it.
        {{ DiscussionBoard.errors[1993997].message }}
  • Profile picture of the author DogScout
    Use custom permalinks and put in: '/%category%/%postname%.html'

    helps with SEO as well
    {{ DiscussionBoard.errors[1993977].message }}
  • Profile picture of the author DogScout
    Or just copy the php home page and all associated files and paste into new site, change '.php' to .html' and add: 'AddType text/x-server-parsed-html .htm .html' to the HTACCESS file
    {{ DiscussionBoard.errors[1993999].message }}
  • {{ DiscussionBoard.errors[1994004].message }}
  • Profile picture of the author DogScout
    Source code includes all the code.
    you are thinking about copying the php file which does not work without all the header, footter, css etc unless you add a line to HTACCESS for the server to parse HTML files
    {{ DiscussionBoard.errors[1994013].message }}
  • Profile picture of the author Istvan Horvath
    butters,
    You really need to improve you reading skills... I did NOT say to copy the .php file. I said copy the source code after righhtclicking the page in the borwser > view source - which is pure HTML output. Nothing php.

    There is no PHP in the browser. It has been parsed on the server. What you copy from the browser (the source code of the output) is just html, nothing else.

    Also, the references to stylesheet and images are absolute paths. So, it must work.

    Actually, I know it works because I have done it many times. When it comes about WP, html and css and don't give opinions. I say everything based on experience.
    Signature

    {{ DiscussionBoard.errors[1994030].message }}
  • Profile picture of the author butters
    Ok yes, you have to take the css with you or put it in the file... That is what confused me because that wasn't said, my bad.
    {{ DiscussionBoard.errors[1994035].message }}
    • Profile picture of the author Istvan Horvath
      Originally Posted by butters View Post

      you have to take the css with you or put it in the file...
      Not necessarily. Only if hotlinking protection is in effect on the first domain.

      The reference to the WP style.css in the output is absolute path, like:
      example.com/wp-content/themes/theme-name/style.css (with http at the beginning, of course) - that's why it works.

      Show me your WP blog and I will make a HTML page of it on any of my domains in a minute
      Signature

      {{ DiscussionBoard.errors[1994112].message }}
      • Profile picture of the author Winlin
        [DELETED]
        {{ DiscussionBoard.errors[1994244].message }}
        • Profile picture of the author Istvan Horvath
          Originally Posted by Winlin View Post

          Go to the general settings area in your blogs admin . You may find an area that say ssomething to this affect s:

          Blog address (URL)_______________ Enter the address here if you want your blog homepage to be different from the directory you installed WordPress.

          You should be able to link to you hTML page this way. Store the page in you blogs public files area.

          hope this helps
          No, it doesn't. I mean it doesn't help anybody.
          It is completely wrong!

          Don't do it, unless you want to break your blog.

          (and as a side note to you, too: READ the OP carefully before answering...)
          Signature

          {{ DiscussionBoard.errors[1994326].message }}
  • Profile picture of the author Cynthia A.
    Thanks Guys,

    Istvan understood exactly what I was asking. It is 2 different domains. I just need the single HTML page with the business name as the URL to appease the business owner. The keyword rich domain on the WP site is for SEO so new customers will find him.
    Signature
    [WSO]: Learn the The Easiest Way To Get Your Emails OPENED So You Can SELL MORE & MAKE MORE MONEY! Find out here

    Is It Worth The Money?
    Video Reviews of Internet Marketing Products: The Good, the Bad & the Ugly. www.IsItWorthTheMoney.com
    {{ DiscussionBoard.errors[1994318].message }}
  • Profile picture of the author Mike Anthony
    Istvan is of course right. For the record no browser ever interprets PHP or .net. for any CMS. The server side outputs the HTML and CSS
    Signature

    {{ DiscussionBoard.errors[1994368].message }}

Trending Topics