Book Image

WordPress 2.7 Cookbook

Book Image

WordPress 2.7 Cookbook

Overview of this book

About 120,000 blogs are created every day. Most of them quickly die, but a few stay, grow up, and then become well known and respected places on the Web. If you are seriously interested in being in the top league, you will need to learn all the tricks of the trade. WordPress 2.7 Cookbook focuses on providing solutions to common WordPress problems, to make sure that your blog will be one of the ones that stay. The author's experience with WordPress enables him to share insights on using WordPress effectively, in a clear and friendly way, giving practical hands-on solutions to WordPress problems, questions, and common tasks ñ from themes to widgets and from SEO to security. Are you feeling limited with WordPress, or are you wondering how popular blogs do a certain kind of thing that you can't? With this cookbook, you will learn many WordPress secrets and techniques, with step-by-step, useful recipes dedicated to achieving a particular goal or solve a particular problem. You'll learn the secret of expensive premium themes, how to optimize your blog for SEO and online profits, and how to supercharge WordPress with killer functions used by the most popular blogs over the Internet.
Table of Contents (17 chapters)
WordPress 2.7 Cookbook
Credits
About the Author
About the Reviewers
Preface
2
Finding and Installing Themes
Index

Live editing themes with the built-in Theme Editor


Among other tools, WordPress features the Theme Editor, which allows you to edit your theme files without downloading or uploading the files. Chapter 3 covers WordPress themes in detail.

Getting ready

To access the Theme Editor, log in to your WordPress Dashboard, and go to Appearance | Editor located at the top of the screen. To select a theme for editing, use the drop-down list located at the top right of the screen. By default, you'll be editing the theme being used currently by your blog.

How to do it...

  1. You can access the templates in the Theme Files, located on the right of the screen.

  2. Simply click on one of the files to begin editing that particular file.

  3. When you're done, click on the Update File button to save your modifications.

How it works...

While editing a theme file in WordPress theme editor, you're actually editing the real file on the server. Once you press the Update File button, the file is saved and the previous version is erased.

There's more...

Although the Theme Editor is probably my favorite built-in tool from WordPress, you have to be careful with it.

  • It is safe to always have a backup of your theme before editing. The Theme Editor does not save revisions. If you have made a modification and later would like to undo the modification, you need to have a backup of the previous version of the file.

  • Use the Theme Editor only if you're sure about what you're doing. If you're editing your current theme and make a programming error (for example, a PHP syntax error), it is possible that your blog will stop functioning.

  • Sometimes, a programming mistake can result in you losing access over the Theme Editor. While this is quite a rare case (it mostly happens when you make a code mistake in the functions.php file), the problem can be important enough for you to always be sure to have a proper backup of your theme, as well as a valid FTP connection to your blog server, before editing any files.

  • In case you are not able to access the editor after editing a file on it, use a FTP program to transfer a backup version of the file you've just edited to your WordPress server.