Functions PHP – get parse error
-
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 https://opensource.org/licenses/gpl-2.0.php GNU Public License
*/function load_fonts() {
wp_register_style(‘googleFonts’, ‘https://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
- The topic ‘Functions PHP – get parse error’ is closed to new replies.