Title: Functions PHP &#8211; get parse error
Last modified: August 31, 2016

---

# Functions PHP – get parse error

 *  [susan-bates](https://wordpress.org/support/users/susan-bates/)
 * (@susan-bates)
 * [10 years ago](https://wordpress.org/support/topic/functions-php-get-parse-error/)
 * I used this code in the child theme as directed
 * <?php
    /** * Portfolio Press Custom Functions and Definitions * * [@package](https://wordpress.org/support/users/package/)
   Portfolio Press * [@author](https://wordpress.org/support/users/author/) Devin
   Price <devin@wptheming.com> * [@license](https://wordpress.org/support/users/license/)
   [http://opensource.org/licenses/gpl-2.0.php](http://opensource.org/licenses/gpl-2.0.php)
   GNU Public License */
 *  function load_fonts() {
    wp_register_style(‘googleFonts’, ‘[http://fonts.googleapis.com/css?family=Rock+Salt](http://fonts.googleapis.com/css?family=Rock+Salt)
   |Neucha’); wp_enqueue_style( ‘googleFonts’); }
 *  add_action(‘wp_print_styles’, ‘load_fonts’);
    ?>
 * but I get a parse error
 * Parse error: syntax error, unexpected ”subset” (T_CONSTANT_ENCAPSED_STRING), 
   expecting ‘)’ in /homepages/20/d627056254/htdocs/clickandbuilds/ColinLanyon/wp-
   content/themes/portfolio-press-custom/functions.php on line 18
 * What am I doing wrong

Viewing 1 replies (of 1 total)

 *  Thread Starter [susan-bates](https://wordpress.org/support/users/susan-bates/)
 * (@susan-bates)
 * [10 years ago](https://wordpress.org/support/topic/functions-php-get-parse-error/#post-7402649)
 * Have currently deleted functions.php so I could gain access to editor.

Viewing 1 replies (of 1 total)

The topic ‘Functions PHP – get parse error’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/portfolio-press/2.8.0/screenshot.
   jpg)
 * Portfolio Press
 * [Support Threads](https://wordpress.org/support/theme/portfolio-press/)
 * [Active Topics](https://wordpress.org/support/theme/portfolio-press/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/portfolio-press/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/portfolio-press/reviews/)

## Tags

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

 * 1 reply
 * 1 participant
 * Last reply from: [susan-bates](https://wordpress.org/support/users/susan-bates/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/functions-php-get-parse-error/#post-7402649)
 * Status: not resolved