Quantcast
Channel: Primary Domain – Build Your Own Business Website
Viewing all articles
Browse latest Browse all 6

InMotion Hosting Lesson 3 – Part 5 – Introduction to your domain’s file structure

$
0
0

Lesson 3 – Part 5 – Introduction to your domain’s file structure

Welcome back to the final part of Lesson 3 of the Start Building Your Website Here Tutorial Series. In this final part of the lesson we are going to take a look at the WordPress File Structure on our domain.

So we will go back to the control panel and scroll down to the Files section and select File Manager. The file manager shows you folders on the left and  files and folders on the right. You can navigate between folders by clicking on them, either in the left or the right hand side of the window. Sometimes it’s a little awkward and folders don’t automatically open when you click on them. If that happens, just try it again.

So, here on the left hand side you see your Home directory or Root directory. Inside this root directory are a variety of folders. The only one that we are really concerned with is the folder named Public_html. Public_html is a special folder that contains your website’s files. If you select Public html here on the left, you can see all of the folders and files it contains here on the right.

If you have installed WordPress for the first time on the primary domain of your hosting account, the WordPress files are automatically placed in the public_html folder. If you are installing WordPress in an addon domain (which is quite common) the WordPress files will be located in a folder within public_html that has the same name as your addon domain.

You can see an example of this in my hostgator account. The primary domain for this account is tailoringtheweb.com. The WordPress files for that primary domain are located directly in public_html

I also have an addon domain called www.tailoringwp.com. It also has WordPress installed, but the files for that WordPress installation are contained in the diywp folder. At it’s root, a WordPress installation contains 3 folders and a bunch of files. The 3 folders are wp-admin, wp-content and wp-includes. Then you have all of these files here. The first of the 3 folders is wp-admin. You won’t ever need to edit or change any of the files in wp-admin. These are the files that make WordPress work properly so you want to leave it alone entirely.

The same thing is true for wp-includes, again there is no reason for you to ever change any of these files. They are necessary for the operation of WordPress itself and any changes you make will more than likely break the installation. So we’ll leave both of these folders alone. However, wp-content is a folder that you will work in fairly regularly. It contains all of the files that are created when you customize your site. The two most important folders inside of wp-content are “plugins” and “themes”. If you select Plugins folder for a moment, you can see that there are two plugins; “hello” and “Akismet”. Any time you install a plugin it gets stored in this folder.

If you go in to Themes, you can see that this installation of WordPress has 2 themes in it. The default theme – 2011, and the former default theme 2010 – are placed in this folder. When the time comes you install a different theme, which we will be doing shortly, you will install that new theme in this themes directory. The same thing is true for plugins, when you install new plugins you will install them in the plugins directory.

Now the reason for this file structure is that WordPress is upgraded or updated fairly regularly. and so when you want to update WordPress, you want to leave the customization that you’ve done alone so that it carries through to the next version of WordPress. You only want to upgrade those files that are necessary to upgrade. So, WordPress sets aside all the customization files into this one folder and when you upgrade in the future, this folder doesn’t get changed, only the other folders get changed.

The take away for this lesson is that wp-content, plugins and themes are the folders you’ll be working within as we customize your site. We will talk about this and demonstrate it extensively in Lesson 4 of this series.

That pretty much concludes Lesson 3, in the next lesson we will learn how to use the FTP – File Transfer Protocol to install themes and plugins.


Viewing all articles
Browse latest Browse all 6

Trending Articles