Habib
Habib

Reputation: 308

Creating a wordpress theme

Just want to know that if I'm going to create a new wordpress theme, what about functions.php, should I need to create a new functions file, or just copy it from other wordpress theme. I have read codex but it only tells about the templates needed to create a new theme.

Upvotes: 0

Views: 205

Answers (2)

Swapnali
Swapnali

Reputation: 1299

  • The theme functions file is a template used by Word-press themes. It acts like a plug-in and gets automatically loaded in both admin and front-end pages of a Word-press site.
  • The functions.php file can be found in your theme’s folder. You don't need to create a new functions.php file when you want to put your own function in function.php just paste that code in your themes functions.php file.
  • You can look into these Reference Links to understand more about function.php file :-

    Functions_File_Explained

Upvotes: 2

Sander Moolin
Sander Moolin

Reputation: 448

You don't need a new functions.php file if you don't want custom functions in your theme.

See this thread for more information - not including functions.php doesn't make any difference for your custom theme.

Upvotes: 1

Related Questions