Title: Custom coding.
Last modified: August 19, 2016

---

# Custom coding.

 *  Resolved [Inv_Trdr](https://wordpress.org/support/users/inv_trdr/)
 * (@inv_trdr)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/custom-coding/)
 * If I add custom code like Google Analytics to my template and then modify it 
   and upload it again, I lose such custom code. Is there a way around this to keep
   the custom code intact while making minor changes to the template?
    Thank you.

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

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/custom-coding/#post-1178379)
 * You can only “lose” code in a template by over-writing it. Is that what is happening?
 *  Thread Starter [Inv_Trdr](https://wordpress.org/support/users/inv_trdr/)
 * (@inv_trdr)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/custom-coding/#post-1178582)
 * Yes. I have Google Analytics in the footer.php file. When I re-install the template
   with minor changes to it like colors etc. I lose that code.
    Thank you.
 *  [whooami](https://wordpress.org/support/users/whooami/)
 * (@whooami)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/custom-coding/#post-1178583)
 * then youre removing the code when you edit the file.
 * the short answer to your question is yes — dont erase your edits, and make sure
   youre modifying the current file, and not a backup.
 * this sounds more like a user issue than a wordpress issue.
 *  Thread Starter [Inv_Trdr](https://wordpress.org/support/users/inv_trdr/)
 * (@inv_trdr)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/custom-coding/#post-1178642)
 * I think the problem lies in using an Artisteer template. When I modify anything,
   it seems a whole new template is generated with all old custom scripts being 
   deleted.
 *  Thread Starter [Inv_Trdr](https://wordpress.org/support/users/inv_trdr/)
 * (@inv_trdr)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/custom-coding/#post-1178647)
 * Will ask them if it is possible to import the old template back for editing and
   then re-exporting it back.
    Thanks.

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

The topic ‘Custom coding.’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 3 participants
 * Last reply from: [Inv_Trdr](https://wordpress.org/support/users/inv_trdr/)
 * Last activity: [16 years, 10 months ago](https://wordpress.org/support/topic/custom-coding/#post-1178647)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
