diff --git a/lib/init.php b/lib/init.php index fb5cc59..09b651e 100644 --- a/lib/init.php +++ b/lib/init.php @@ -30,7 +30,7 @@ if (!defined('__DIR__')) { define('__DIR__', dirname(__FILE__)); } // Define helper constants $get_theme_name = explode('/themes/', get_template_directory()); -define('THEME_NAME', next($get_theme_name)); define('RELATIVE_PLUGIN_PATH', str_replace(home_url() . '/', '', plugins_url())); define('RELATIVE_CONTENT_PATH', str_replace(home_url() . '/', '', content_url())); +define('THEME_NAME', next($get_theme_name)); define('THEME_PATH', RELATIVE_CONTENT_PATH . '/themes/' . THEME_NAME);