Closed jainnidhi closed 6 years ago
I've added a class of google font custom control same as given. And created a control in the customizer file but it is showing an error.
Warning: Invalid argument supplied for foreach() in
public function skyrocket_getFontIndex( $haystack, $needle ) { foreach( $haystack as $key => $value ) { if( $value->family == $needle ) { return $key; } } return false; }
Solved!
I've added a class of google font custom control same as given. And created a control in the customizer file but it is showing an error.
Warning: Invalid argument supplied for foreach() in
public function skyrocket_getFontIndex( $haystack, $needle ) { foreach( $haystack as $key => $value ) { if( $value->family == $needle ) { return $key; } } return false; }