php - How I can Use parent theme's constants in child Theme. Wordpress -


i have created child theme when load site did not find logo image saved in constant in parent theme's function file , httpd.exe memory goes upt 1gb , did not show error check apche php error log below error found.

so question how can use constant defined in parent theme function file child theme should need redefine in child theme.

[02-jul-2015 02:53:21 utc] php warning: getimagesize(http://localhost/wordpress/wp-content/themes/my-shahid/images/logo.png): failed open stream: http request failed! http/1.0 404 not found in c:\xampp\htdocs\wordpress\wp-content\themes\my-framework\functions.php on line 233

at line 233 code

232: $logo = images . '/logo.png';  233: $logo_size = getimagesize( $logo ); 

$logo = images . '/logo.png'; not right way define constant in wordpress, instead should define as.

define("theme_logo", images ."/logo.png"); 

and can use writing theme_logo, anywhere in theme scope


Comments

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -