In this part of the lesson we will connect the file structure on your website and download files from your domain to your local machine. Go to the upper left hand corner and click File, Site manager, select the site that we set up, which in my case is byobtutorial, and hit Connect. See it says the director listing was successful. Let’s go over here to the right hand side and open up the root directory. Go down to public_html and select it. Under public_html we’re going to open up wp-content and these are the things that we are going to download back to our local machine.
Open wp_content Folder
We want to go to the location on the local machine where we set up your local file structure which in this case was under Rick, My business websites. Remember we built graphics, text and WordPress. Under WordPress we’re going to go down to wp-content. Open up wp-content and select that folder. Now what you see here is the folder plugins, themes which relates to the folder plugins, and the folder themes over here on your domain file structure.
Synchronize Both Local and Website (Domain) File Structure
Our ultimate goal is to coordinate or synchronize both file structures so that they’re always the same. So that when we make changes to this one we can automatically upload it over here and those changes are automatically reflected in the domain. We will start that by actually taking what’s already been installed and downloading it back but from this point on most of the downloading will be in this direction.
Download Website Files to Your Local File System
First, take this index.php and select it. We’ll right click and hit Download. And you can see index.php has been downloaded here. Then we’ll select plugins, right click, Download.
There are a lot more files over here that we’re downloading If we open up the plugins folder you can see that it has information in it whereas before it didn’t. And it has the same information as the other one does. Let’s go back up a level. If you double-click on this icon it takes you back up a level. We’ll start here. Again, wp-content, then right click or select themes, right click and download that.
Down here on the bottom it tells you how many files have been transferred — successfully transferred 43. If you double-click on themes you’ll see both the classic and default themes; we’ll be adding more themes to these in future lessons. That concludes our download website files to your local file system lesson.