Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress

Nathan Noye
Nathan Noye
4,370 Points

Go from wordpress site to standard HTML and CSS alone

I currently have a website with Wordpress that I bought through the Web hosting for student site associated with Treehouse. I figured I dont need a site that will be constantly updated, I just need a basic site to put some basic info on there. How would I go from having wordpress installed on my site to just a static HTML and CSS site where I would have already written the code?

Nathan Newell
Nathan Newell
7,634 Points

Really depends on the functionality behind the theme. What type of plugins does it rely on for the website to function properly? If it is a relatively basic theme, you could start by copying the source code and the css files. You can quite easily create a static site from this. You'll just need to create the right directory paths and should should be away laughing.

2 Answers

Depending on how you installed it, you can do 3 of the below

Tip: Make sure your main file is called index.html before uploading.

1) If installed through a 1 click install service, just go to that service and delete the installation. (relatively easy with cpanel)

2) Delete all the files in your hosting directory that are associated with WordPress yourself and delete the database, then just upload the html and css files to the root of your directory when ready.

3) rename the root index.php file to something else like index.phpBACKUP and place your css and html files here. Be sure to rename other files of the same name with BACKUP just incase you change your mind in the future and want to have the same site back again.

I'd personally go with 1 of the first 2 as its cleaner.

Nathan Noye
Nathan Noye
4,370 Points

Thank you so much! I did the one click install so I imagined it would have been just as easy to remove it, cheers brother!