Hey Guys,
Was just checking my PHP log and I am getting the below error caused by the above code I implemented:
PHP Warning: A non-numeric value encountered in /public/wp-content/themes/generatepress_child/functions.php on line 168
This is the line that resides on 168:
wp_enqueue_style( ‘home-style’, '/wp-content/themes/generatepress_child/home-style.css', false, '1.0', 'all' );
And this is the whole section:
add_action( 'wp_enqueue_scripts', 'my_custom_scripts', 500 );
function my_custom_scripts()
{
// Bail if we're not on the front page
if ( ! is_front_page() )
return;
wp_enqueue_style( ‘home-style’, '/wp-content/themes/generatepress_child/home-style.css', false, '1.0', 'all' );
}
Any thoughts on why thats triggering an error?
Cheers,
Simon