• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WP SITES

2784

Original Genesis Tutorials & 6000+ Guaranteed Code

Snippets

  • Consultation
  • Full Access
  • Log in

Open Different File Types With a Windows Text Editor Like Notepad++

Can you remember the first time you experienced the dreaded white screen of death?

I clearly remember Brian Gardner posting a line of php code in the StudioPress forum trying to help me with customization.

I pasted it into the wrong file causing my site to stop working.

What i should have done was downloaded a copy of the file and opened it using a text editor like Notepad++.

Notepad++ opens a huge range of different file types and allows you to keep a copy just in case you stuff it up like i did.

New To WordPress Code?

I suggest you install WordPress locally and download Notepad++.

You can then play around with all the CSS and PHP code in your theme files.

The most common file types you’ll open with Notepad++ are:

  • .php – Functions code
  • .css – Styling code
  • .xml – RSS Export file
  • .sql – Database code
  • .htaccess – Server configuration

Backup Files

You should always copy a file for backup before editing the code. Especially if its a .php file.

If you make a mistake and suffer an error, you can always upload the backup file to your server overwriting the problem file and restoring your site.

Search Find & Replace

The search feature lets you find code and replace all instances in an entire file quickly and easily.

This feature comes in handy when customizing WordPress, changing internal links and finding the block of code you want to edit or change in some way.

Here’s an example using the term ‘search’ to find all CSS code used to style the search form in a theme.

notepad ++ search

Reader Interactions

Comments

  1. Keith Lockhart says

    December 4, 2012 at 8:18 pm

    Brad,

    No need to put “Windows” in front of your post title. Text editors are needful things. You may need some different things to serve WordPress locally.

    Regards,

    Keith

    Log in to Reply
    • Brad Dalton says

      December 4, 2012 at 8:53 pm

      Trying to rank for the Windows keyword!! hahaha

      Log in to Reply

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

Code written by Brad Dalton specialist for Genesis, WooCommerce & WordPress theme customization. Read More…

Advertise · WPEngine · Genesis · Log in

  • Access Problems
  • Account Details
  • Consulting
  • Tags
 

Loading Comments...
 

You must be logged in to post a comment.