From 94e47c327915062d4ef0079dbf9de504da900cfd Mon Sep 17 00:00:00 2001 From: Ben Word Date: Sat, 30 Apr 2011 20:32:40 -0600 Subject: [PATCH] fixes #40 --- includes/roots-options.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/roots-options.php b/includes/roots-options.php index 97a08de..76d52a5 100644 --- a/includes/roots-options.php +++ b/includes/roots-options.php @@ -4,7 +4,9 @@ add_action('admin_menu', 'roots_create_menu'); function roots_create_menu() { - $icon = get_template_directory_uri() . '/includes/img/icon-roots.png'; + $home_url = home_url(); + $theme_name = next(explode('/themes/', get_template_directory())); + $icon = "$home_url/wp-content/themes/$theme_name/includes/img/icon-roots.png"; // create menu $theme_name = get_current_theme();