Difference between revisions of "WordPress functions.php"

From Wiki @ Karl Jones dot com
Jump to: navigation, search
(Created page with "In a WordPress theme, the file named '''functions.php''' contains custom functions for that theme. == See also == * WordPress * WordPress...")
 
Line 1: Line 1:
In a [[WordPress theme]], the file named '''functions.php''' contains custom [[Function (WordPress)|functions]] for that theme.
+
In a [[WordPress theme]], the file named '''<code>functions.php</code>''' contains custom [[Function (WordPress)|functions]] for that theme.
 +
 
 +
The file name <code>functions.php</code> begins with a lower-case f.
 +
 
 +
Do not be confused by the title of this article: "Functions.php (WordPress)".
 +
 
 +
== Description ==
 +
 
 +
The WordPress themes can provide custom functionality via <code>functions.php</code>.
 +
 
 +
Writing custom functions requires some knowledge of PHP programming, more than a beginning programmer is likely to know.
 +
 
 +
* However, beginning programmers may wish to study existing <code>functions.php</code> code from particular themes, to learn how functions work.
 +
* It is often possible for a beginner to modify an existing function for some specific purpose
 +
 
 +
<code>functions.php</code> is optional.  Not all themes have it.
 +
 
 +
== Location ==
 +
 
 +
<code>functions.php</code> is located in the root of a WordPress theme folder.
  
 
== See also ==
 
== See also ==

Revision as of 05:36, 22 October 2015

In a WordPress theme, the file named functions.php contains custom functions for that theme.

The file name functions.php begins with a lower-case f.

Do not be confused by the title of this article: "Functions.php (WordPress)".

Description

The WordPress themes can provide custom functionality via functions.php.

Writing custom functions requires some knowledge of PHP programming, more than a beginning programmer is likely to know.

  • However, beginning programmers may wish to study existing functions.php code from particular themes, to learn how functions work.
  • It is often possible for a beginner to modify an existing function for some specific purpose

functions.php is optional. Not all themes have it.

Location

functions.php is located in the root of a WordPress theme folder.

See also