I

#sidebar-£ margin-top :lôpxj paddi rig-right :0pxj

#footer{ jtfi<tth:942px;

Theme Files

Templates

404 Template <404.php) Archives (archive.php) Archives Page Template (archives.php) Attachment Template (attachment, php) Category Template (category.php) Comments (comments.php) Footer (footer.php) Header (header.php) Links Page Template (I inks.php) Main Index Template (index.php)

Page Template (page.php)

Popup Comments

(comments-popup.php)

Search Form

(search Form, php)

Search Results (search.php)

Sidebar (sidebar.php)

Single Post (single.php)

Theme Functions

(functions.php)

author.php <author.php)

s[mple_recent_comments,php

(simple_recent_comments.php)

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.

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.

Editing plugins with the WordPress built -in Plugin Editor

As WordPress features an editor allowing you to live edit your theme, it also provides another editor for editing plugins. Chapter 4 covers plugins in detail.

Getting ready

To access the Plugin Editor, log in to your WordPress Dashboard and go to Plugins | Editor located at the top of the screen. Then, select the plugin to edit from the list located on the right of the screen.

gp Edit Plugins

Editing adrotator.php (active)

cfphp I*

Cestnptioi: -i<e the ;e>>t Kicget, tut it Kill take several clunks o-' H'M. text separated vnth itlt; its»4i;ik»4S;i crt»Ji«4S;Xlt4S;}i£t; . Tn »M<h |M(;p r»(|u-vt n-» : h n.k w II I- ci« r>ld/«-'t. <Jp <5 irstances c< this *idget ray exist. Heavily derived (ran the ~ext widget code ir:ljded vdti the wirtfct-t picjin 1/ A'ltciMt t .1 , Tm .

-ljgn IK:: htts://kpi.ruk.info/projects/Vardpress-plJgins/ad-rotator.' Author: Kpumuk Version: 1.0.1

Author UftI: http://kpumuk.info

0 0

Post a comment