# Theme title in admin shows full path [closed]

For some reason my admin panel seems to be a little busted. My themes title (Smashing Themes: Tank) now shows up as the full path of the theme instead of just he title. Kinda weird and a little annoying. It shows up in multiple browsers.

-

## closed as too localized by toscho♦Jan 30 '13 at 19:50

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

What did you do immediately before this started? –  s_ha_dum Jan 29 '13 at 5:21
you need to post the code. –  Jamie Jan 29 '13 at 5:29
Just logged in for the first time today. Nothing special. –  Brian Jan 29 '13 at 5:29
Post what code? –  Brian Jan 29 '13 at 5:30
I switched themes and then switched back hoping that might fix it, but no luck. –  Brian Jan 29 '13 at 5:50

Do a project/directory wide search in your theme directory for add_menu_page and make sure second and first parameters of any calls to that function does not supply anything weird. By the looks of instead of a page name, the result of get_bloginfo('stylesheet_url') is used when setting up the menu page.
Only two instances of the aforementioned code and both were in the admin php page. Here is a paste add_menu_page('Theme', $name, 'manage_options', 'OptionsPage', array(&$this, 'ThemeOptionsPage'), '', 64); add_theme_page( $name,$name, 'manage_options', 'OptionsPage', array(&$this, 'ThemeOptionsPage')); – Brian Jan 29 '13 at 16:27 The author of the theme had some updates that he did to it. I reuploaded the theme and it solved my problem. Thanks for your help in trying to diagnose. – Brian Jan 29 '13 at 16:33 Great! Had just about completed my answer before your comment, so I'll post it just for the record: Try logging the second parameter in add_menu_page, $name and see what it contains. Just put var_dump(\$name); die(); before the call to add_menu_page and check the output. Somehow it seems to hold the stylesheet_uri rather than the menu item title like it should. –  Simon Jan 29 '13 at 16:35