Title: error code adding to functions/php
Last modified: August 30, 2016

---

# error code adding to functions/php

 *  Resolved [wph4](https://wordpress.org/support/users/wph4/)
 * (@wph4)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/error-code-adding-to-functionsphp/)
 * Hi,
 * Trying it out.
    I have copied this to functions.php
 *     ```
       <?php
           if (function_exists('zeno_font_resizer_place')) {
               zeno_font_resizer_place();
           }
       ?>
       ```
   
 * Then, I get this error code…
 * > Parse error: syntax error, unexpected ‘<‘ in /public/sites/mysite/wp-content/
   > themes/themename/functions.php on line 139
 * line 139 is this <?php
    What do I need to change?
 * Thanks!
 * [https://wordpress.org/plugins/zeno-font-resizer/](https://wordpress.org/plugins/zeno-font-resizer/)

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

 *  Plugin Author [Marcel Pol](https://wordpress.org/support/users/mpol/)
 * (@mpol)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/error-code-adding-to-functionsphp/#post-6734895)
 * For code that you place in functions.php you can remove the ‘<?php’ and ‘?>’
   
   That is for opening and closing PHP code, and switching between HTML and PHP.
 * But this is really a template function. If you place it in functions.php, it 
   will give output at a too early stage, and it will break your website (logins
   specifically).
    You should place it in a template file like header.php or another
   one, at the place in the HTML-structure where you want it.
 * Really, just using the widget might be easier.
 *  Thread Starter [wph4](https://wordpress.org/support/users/wph4/)
 * (@wph4)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/error-code-adding-to-functionsphp/#post-6734898)
 * Thanks!
 * I would like to have it working for the whole website.
 * I am working with a child theme.
 * What would be then the best solution to have it done and not overwritten with
   theme updates?
 * Cheers!
 *  Plugin Author [Marcel Pol](https://wordpress.org/support/users/mpol/)
 * (@mpol)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/error-code-adding-to-functionsphp/#post-6734905)
 * You can add it to the header.php of your child-theme. Or just add a widget to
   your widget-area.
    Both methods will keep it working after a parent-theme update.
 *  Plugin Author [Marcel Pol](https://wordpress.org/support/users/mpol/)
 * (@mpol)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/error-code-adding-to-functionsphp/#post-6735086)
 * I assume you got it sorted?
 *  Thread Starter [wph4](https://wordpress.org/support/users/wph4/)
 * (@wph4)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/error-code-adding-to-functionsphp/#post-6735089)
 * Hi,
 * Yes, I have put it in a widget, but it looks like it doesnot work with my theme….
 * Size is changing but just for some parts ….

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

The topic ‘error code adding to functions/php’ is closed to new replies.

 * ![](https://ps.w.org/zeno-font-resizer/assets/icon-256x256.png?rev=1166007)
 * [Zeno Font Resizer](https://wordpress.org/plugins/zeno-font-resizer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/zeno-font-resizer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/zeno-font-resizer/)
 * [Active Topics](https://wordpress.org/support/plugin/zeno-font-resizer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/zeno-font-resizer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/zeno-font-resizer/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [wph4](https://wordpress.org/support/users/wph4/)
 * Last activity: [10 years, 7 months ago](https://wordpress.org/support/topic/error-code-adding-to-functionsphp/#post-6735089)
 * Status: resolved