Warning: Use of undefined constant THEME_VERSION - assumed 'THEME_VERSION'
Hello guys, what is the right code to use? thank you in advance
Warning: Use of undefined constant THEME_VERSION - assumed 'THEME_VERSION' (this will throw an Error in a future version of PHP) in /home/herbalteasaustra/public_html/newhta/wp-content/themes/betheme-child/functions/theme-head.php on line 111
if( ! function_exists( 'mfn_styles' ) )
Warning: Use of undefined constant THEME_VERSION - assumed 'THEME_VERSION' (this will throw an Error in a future version of PHP) in /home/herbalteasaustra/public_html/newhta/wp-content/themes/betheme-child/functions/theme-head.php on line 111
if( ! function_exists( 'mfn_styles' ) )
{
function mfn_styles()
{
$theme_disable = mfn_opts_get( 'theme-disable' );
// wp_enqueue_style ------------------------------------------------------
wp_enqueue_style( 'style', get_stylesheet_uri(), false, THEME_VERSION, 'all' );
wp_enqueue_style( 'mfn-base', THEME_URI .'/css/base.css', false, THEME_VERSION, 'all' );
wp_enqueue_style( 'mfn-layout', THEME_URI .'/css/layout.css', false, THEME_VERSION, 'all' );
wp_enqueue_style( 'mfn-shortcodes', THEME_URI .'/css/shortcodes.css', false, THEME_VERSION, 'all' );
Comments
Please, try to change your Betheme Child to Parent, and check if this Warning still appears.
Thanks
i'm using child theme because there are lots of customization on the website
Please send us WordPress dashboard access privately thru the contact form which is on the right side at http://themeforest.net/user/muffingroup#contact and we will check what might be the reason.
Notice!
Please attach a link to this forum discussion.
Thanks