Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 7. Creating an Advanced Theme > Outside the Theme Hierarchy: Database E...

7.6. Outside the Theme Hierarchy: Database Errors and Maintenance Messages

There are also a few files that live outside the theme directory but still affect how your site looks at times. For example, you can create a file called db-error.php in your wp-content directory and use it to style your database connection error message, as shown in Listing 7-26.

Example 7-26. Basic db-error.php file

<html>
<head>
<title>Database Error | MySite.com</title>
</head>
<body>
<h1>Database Error</h1>
<p>The database is not responding, and this site is unavailable. We're sorry! Please try again later.</p>
</body>
</html>

					  


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial