Global variable returns null

wordpress

#1

Hi everyone,

I used Redux framework on my theme and I got soft reject “All global variables should be within a function or class.”
I moved the global $themename_var; to functions.php but variable returns null. Btw Redux not embeded, it works as a plugin.

function themename_global_variable(){
	global $themename_var;
}

I tried everything but it doesn’t work. Any suggestions?