Title: Retrofitting functions.php?
Last modified: August 20, 2016

---

# Retrofitting functions.php?

 *  Resolved [cfscare](https://wordpress.org/support/users/cfscare/)
 * (@cfscare)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/retrofitting-functionsphp/)
 * I’m using an old theme that doesn’t include a functions.php file. Is it possible
   to add this file now? How would I go about doing this? Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [zartgesotten](https://wordpress.org/support/users/wearitwell/)
 * (@wearitwell)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/retrofitting-functionsphp/#post-2263277)
 * Just add it.
    It should be interpreted automatically. put the functions.php into
   the theme directory … of course you should put some code in it, too 😉 Good Luck
   Anja
 *  Thread Starter [cfscare](https://wordpress.org/support/users/cfscare/)
 * (@cfscare)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/retrofitting-functionsphp/#post-2263301)
 * Thanks. I tried that, but it didn’t seem to work — the text of the functions.
   php file was just displayed visibly at the top of the screen, before the theme
   was rendered. So I removed it again.
 * The site is here: [http://www.futilitycloset.com/](http://www.futilitycloset.com/)
 * Thanks again for your help.
 *  [zartgesotten](https://wordpress.org/support/users/wearitwell/)
 * (@wearitwell)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/retrofitting-functionsphp/#post-2263307)
 * Hey… if text shows… that probably means there’s something wrong with your functions.
   php.
    Could you post the code that is in the functions.php file?
 *  Thread Starter [cfscare](https://wordpress.org/support/users/cfscare/)
 * (@cfscare)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/retrofitting-functionsphp/#post-2263360)
 * Yes, here it is:
 * _[Code moderated as per the [Forum Rules](http://codex.wordpress.org/Forum_Welcome#Posting_Code).
   Please use the [pastebin](http://wordpress.pastebin.com/)]_
 * Basically I’m trying to follow the advice in this post:
 * [http://wordpress.org/support/topic/rss-feed-before-the-more-tag#post-1593916](http://wordpress.org/support/topic/rss-feed-before-the-more-tag#post-1593916)
 * so that my RSS feed will display only the text that precedes the <!–more–> tag
   in each post. Many thanks again for your help!
 *  [zartgesotten](https://wordpress.org/support/users/wearitwell/)
 * (@wearitwell)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/retrofitting-functionsphp/#post-2263412)
 * Ok… you probably forgot the
    `<?php` before the pasted code and the `?>` at the
   end. So the full code in your functions.php must look like this:
 * That should work!
 *  Thread Starter [cfscare](https://wordpress.org/support/users/cfscare/)
 * (@cfscare)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/retrofitting-functionsphp/#post-2263493)
 * D’oh! That works perfectly. Thanks again for your help!

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Retrofitting functions.php?’ is closed to new replies.

## Tags

 * [Themes](https://wordpress.org/support/topic-tag/themes/)

 * 6 replies
 * 2 participants
 * Last reply from: [cfscare](https://wordpress.org/support/users/cfscare/)
 * Last activity: [14 years, 9 months ago](https://wordpress.org/support/topic/retrofitting-functionsphp/#post-2263493)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
