• susan-bates

    (@susan-bates)


    I used this code in the child theme as directed

    <?php
    /**
    * Portfolio Press Custom Functions and Definitions
    *
    * @package Portfolio Press
    * @author Devin Price <[email protected]>
    * @license 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|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

    (@susan-bates)

    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.