Title: Parse error &#039;;&#039; in functions.php
Last modified: August 22, 2016

---

# Parse error ';' in functions.php

 *  Resolved [Onrie](https://wordpress.org/support/users/onrie/)
 * (@onrie)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/parse-error-in-functionsphp-3/)
 * I’m getting an error code with unexpected ‘;’ on line nine
    ( wp_register_style(‘
   MyFonts’, ‘/fonts/Gotish_SB_Bold_Webkit.css?family=GotischSBOP-Bold)’; ) Please
   advice, Thank you
 *     ```
       <?php
       // Exit if accessed directly
       if ( !defined('ABSPATH')) exit;
   
       /* Add custom functions below */
       function load_fonts() {
                   wp_register_style('googleFonts', 'http://fonts.googleapis.com/css?family=PT+Sans+Narrow:400,700&subset=latin-ext');
                   wp_enqueue_style( 'googleFonts');
                   wp_register_style('MyFonts', '/fonts/Gotish_SB_Bold_Webkit.css?family=GotischSBOP-Bold)';
                   wp_enqueue_style( 'MyFonts');
                   wp_register_style('MyFonts', '/fonts/Gotish_SB_Bold_Webkit_unhinted.css?family=GotischSBOP-Bold)';
                   wp_enqueue_style( 'MyFonts');
               }
   
           add_action('wp_print_styles', 'load_fonts');
       ?>
       ```
   

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

 *  [HudsonValleyWebDesign](https://wordpress.org/support/users/jaycbrf/)
 * (@jaycbrf)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/parse-error-in-functionsphp-3/#post-5901184)
 * I just use [@import](https://wordpress.org/support/users/import/) at the top 
   of my style.css
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/parse-error-in-functionsphp-3/#post-5901190)
 * try:
 *     ```
       ( wp_register_style('MyFonts', '/fonts/Gotish_SB_Bold_Webkit.css?family=GotischSBOP-Bold'); )
       ```
   
 *  Thread Starter [Onrie](https://wordpress.org/support/users/onrie/)
 * (@onrie)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/parse-error-in-functionsphp-3/#post-5901197)
 * Thank you alchymyth, tried it but will return the exact same error message.
 *  Thread Starter [Onrie](https://wordpress.org/support/users/onrie/)
 * (@onrie)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/parse-error-in-functionsphp-3/#post-5901225)
 * Thank you jaycbrf,
    that didi it! Resolved.
 * Cheers,
    Onrie

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

The topic ‘Parse error ';' in functions.php’ is closed to new replies.

## Tags

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

 * 4 replies
 * 3 participants
 * Last reply from: [Onrie](https://wordpress.org/support/users/onrie/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/parse-error-in-functionsphp-3/#post-5901225)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
