Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member
Now that we have a basic understanding of how themes function, all necessary modules configured and browser-based tools in place, let's get our hands dirty and start creating our custom theme. We are going to take a look at creating the content for the Samoca website using the Backup and Migrate module that we installed earlier. We will utilize this to restore all the data that makes up our website as well as replacing the sites folder so that we're better prepared. If we go ahead and browse on over to our Desktop, to our Exercise Files, we're going to see two files.
One is the sites.zip folder; the other is samoca.mysql.zip which is the database backup that we are going to restore. Let's go ahead and start by replacing the sites folder. Go ahead and double-click on sites. zip to extract it, then once we have the sites folder simply copy, navigate to Sites>samoca and paste this item in place. This is going to replace the existing sites folder and this is exactly what we want to do.
Click on Replace and now we have our new sites folder structure in place. That's part one, the second part is restoring the data. So if we go ahead and browse on over to Firefox, go to Configuration>System>Backup and Migrate and then the Restore tab, from here we can browse to the mysql back up that we need to restore. Click on the Browse button, locate your Exercise Files, and then locate the samoca.mysql.zip file, click on it, click Open and click Restore now.
Depending on the size of the database, this may take a second. Once the Default Database has been restored Drupal will actually notify us with the following message; default database restored from Upload file samoca.mysql. We want to confirm that it has successfully been restored. Once we have, we can close this tab and we can see that our site is now changed. We are now seeing some new data including new menu items and new content that make up the samoca theme.
We have used the Backup and Migrate module to populate the content for the San Angelico Museum of Contemporary Art, as well as reviewed the site content that makes up our non-themed website. Let's move on to reviewing our static HTML website and create a roadmap for what sections of our site will need to be themed.
Get unlimited access to all courses for just $25/month.Become a member
58 Video lessons · 60154 Viewers
61 Video lessons · 92767 Viewers
82 Video lessons · 104210 Viewers
56 Video lessons · 107230 Viewers
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.
Your file was successfully uploaded.