Title: Error when adding function to child theme
Last modified: August 21, 2016

---

# Error when adding function to child theme

 *  Resolved [fcvolunteer](https://wordpress.org/support/users/fcvolunteer/)
 * (@fcvolunteer)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/error-when-adding-function-to-child-theme/)
 * I’m trying to correct a typo in the dgx-donate.php file which is putting an extra
   space before the text:
 * > Add me to your mailing list
 * I tried fixing this by following the directions [ here ](http://allendav.com/2014/03/09/seamless-donations-3-1-0-css-ids-and-item-name-filter/)
   and adding the `dgx_donate_get_donor_section` function to my child theme’s function.
   php file. When I did that I got the following error:
 * `Fatal error: Cannot redeclare dgx_donate_get_tribute_section() (previously declared
   in \wp-content\plugins\seamless-donations\dgx-donate.php:552) in \wp-content\
   themes\FCNC\functions.php on line 186`
 * Any help would be much appreciated.
 * Thanks!
 * [https://wordpress.org/plugins/seamless-donations/](https://wordpress.org/plugins/seamless-donations/)

Viewing 1 replies (of 1 total)

 *  [Allen Snook](https://wordpress.org/support/users/allendav/)
 * (@allendav)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/error-when-adding-function-to-child-theme/#post-4761766)
 * You can’t redefine a plugin function.
 * That said – I removed the extra space in version 3.2.3
 * Enjoy!
 * …Allen

Viewing 1 replies (of 1 total)

The topic ‘Error when adding function to child theme’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/seamless-donations.svg)
 * [Seamless Donations is Sunset](https://wordpress.org/plugins/seamless-donations/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/seamless-donations/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/seamless-donations/)
 * [Active Topics](https://wordpress.org/support/plugin/seamless-donations/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/seamless-donations/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/seamless-donations/reviews/)

## Tags

 * [child theme](https://wordpress.org/support/topic-tag/child-theme/)
 * [function](https://wordpress.org/support/topic-tag/function/)

 * 1 reply
 * 2 participants
 * Last reply from: [Allen Snook](https://wordpress.org/support/users/allendav/)
 * Last activity: [12 years, 2 months ago](https://wordpress.org/support/topic/error-when-adding-function-to-child-theme/#post-4761766)
 * Status: resolved