• Our WordPress site is slow and we want to convert certain pages into php or html.
    How to properly move the page out of WordPress and place it in the CPanel root folder?
    We know that there are ways to convert the whole WordPress site into a static html site, but how to convert only a couple of pages, including the homepage? The homepage is the biggest concern.
    We want the blog posts to stay on WordPress.
    Is it possible to have a mix of php and WordPress pages on one site?
    We basically understand how to do it in theory, but never tried it before.
    So, we would be pleased for any practical advice. Maybe someone did anything similar. Please, share your experience.
    Is it possible to conduct such a transfer with no impact on the website?
    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Why go through this effort? Why not take the time to optimize your website? The type of customization you want will only create long term maintenance headaches IMO.

    The way that I did it was to write a plugin that had a parameter of a file name. The plugin would return the contents of the file. The files resided in a subdirectory on the web site.

    The file contained the main content of the original word press file and the header data that loaded the necessary scripts and css.

    The content on the original page was replaced with a shortcode of the plugin with the file parameter.

    In my case, the file content was generated by either
    1) A PHP scripts that accessed internal database tables and wrote the files.
    2) A VB script that reads HTML output generated by InDesign, and extracted the content, as well as loading some database tables from the HTML content

    Depending on the content of your files, the editing might be a pain.

    • This reply was modified 4 years, 3 months ago by rweil55.
    Dion

    (@diondesigns)

    If your homepage is truly static, meaning that it doesn’t change and is the same whether you are logged in or logged out, then you can do what you want. Very few WP homepages meet these requirements, so be careful if you decide to proceed.

    Most browsers will display a page’s source HTML by pressing Ctrl-U. If you save the source HTML of your homepage as index.html, upload that file to the WordPress root directory, and then rename the WordPress index.php file to index.phpx, your site should now use the HTML page for your homepage.

    You can revert to the default WordPress behavior by deleting the index.html file and renaming index.phpx back to index.php.

    Thread Starter Julia Rivers

    (@juliarivers)

    @bigmoxy We’ve tried to optimize it, but it’s still slow, especially certain pages. Besides, there are web vitals issues shown in the search console. Maybe, you can give us a tip on how to optimize it. We might miss some points. It’s https://personalmoneyservice.com/

    Thread Starter Julia Rivers

    (@juliarivers)

    @rweil55 Thanks for your advice! Are there some ready-made plugins with similar functions?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Moving wordpress homepage to simple php/html to improve speed’ is closed to new replies.