Book Image

WordPress 3 Cookbook

By : Ric Shreves, Jean-Baptiste Jung
Book Image

WordPress 3 Cookbook

By: Ric Shreves, Jean-Baptiste Jung

Overview of this book

<p>Using the WordPress Content Management System, you can create a beautiful, dynamic, and amazing website. WordPress is a flexible and powerful tool that's ideal for creating both blog and non-blog websites. Are you feeling limited with WordPress, or are you wondering how popular blogs do a certain kind of thing that you can't?<br /><br /><i>WordPress 3 Cookbook</i> focuses on providing solutions to common WordPress problems so that you can translate your site to one of the best. 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 &ndash; from themes to widgets and from SEO to security. <br /><br />With this update to the WordPress 2.7 cookbook, you will learn many WordPress 3 secrets and techniques, with step-by-step, useful recipes dedicated to achieving a particular goal or solving a particular problem. <br /><br />You will learn to install and customize themes, work with plugins, customize content display, enhance interactivity with the user and build communities. Then, the book also teaches you to earn revenue through online sales and advertisements. You will also find recipes for SEO and enhancing usability, and the book finally winds up with information on the inevitable maintenance and security.<br /><br />This book helps you to get solutions to common WordPress problems, to make your site better, smarter, faster, and more secure.</p>
Table of Contents (16 chapters)
WordPress 3 Cookbook
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
Index

Modifying plugin files with the built-in Plugin Editor


Plugins are a vital part of your WordPress site, adding much of the key functionality to your site. Just as we saw with the Theme Editor in the previous recipe, you can edit plugin files directly from within the WordPress dashboard, without the need of a third party editor. In this recipe, we introduce the basics of working with the Plugin Editor.

Getting ready

Everything you need to complete this recipe is located inside your WordPress dashboard.

How to do it...

  1. Log in to your WordPress Dashboard.

  2. Click on the Plugins menu.

  3. Click on the option Editor.

  4. By default, the system will display one of the files from the first available plugin, as seen in the next screenshot. If you wish to change the view to edit a different file for the plugin, simply click the name of the file in the right hand column. To change to a different plugin, select one from the combo box labeled Select plugin to edit.

  5. Make your changes.

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

How it works...

The built-in Plugin Editor works in exactly the same way as the Theme Editor. When a file is modified and saved, the modifications are written directly in the source file—there's no copy or backup.

Tip

The system provides a link to documentation for the plugin. If you look below the editing window in the previous screenshot, you can see a combo box labeled Documentation. Select the appropriate file from the list then click Lookup to view the documentation.

There's more...

The Plugin Editor is a very useful tool; however, it can also create problems if used improperly.

  • Unless you're very sure about what you're doing, always deactivate the plugin before editing

  • Always have a backup of the plugin you're editing, as the Plugin Editor does not save any revisions

  • If—after editing a plugin—your site does not function correctly, deactivate the plugin, and upload your plugin files backup to your wp-content/plugins/yourplugin directory

See also

  • Chapter 3, Working with Plugins and Widgets, covers WordPress plugins in more detail