• I have a theme with some custom theme options, it creates its own menu item on the standard left-side dashboard menu list. Its label is the theme name but I am trying to change it to something more intuitive for the people im setting this up for. like “custom settings”.

    When i inspect the element in firefox it says “div.wp-menu-name”, or in the code area when i inspect it, it says:

    <div class="wp-menu-name">
          Empire
        </div>

    Ive used dreamweaver to search the theme folder for this div class (searched source code and text) and it turns up no results.

    Anyone know how i can do this?

Viewing 10 replies - 1 through 10 (of 10 total)
  • Where did you download this theme from?

    Thread Starter theregoesjb

    (@theregoesjb)

    not sure, im helping them work on a site they started

    Unless we know the theme or can see the site, we can’t really help.

    Thread Starter theregoesjb

    (@theregoesjb)

    the theme is called ’empire’ … the site is currently offline or hidden to public, you have to be admin to see it.

    Either way, this is located in the dashboard.

    I’m hoping someone with experience with something like this will recognize my question or perhaps any guesses as to where the dashboard menu items are generated from?

    I’m sorry but as you are using a commercial theme, you need to seek support from the theme’s developer/vendor. We cannot access that theme and we do not support commercial products here.
    Try http://www.woothemes.com/support/

    Thread Starter theregoesjb

    (@theregoesjb)

    well the question really has to do with the where the code for the menu items is generated, which applies to any wordpress theme.

    No – it’s very much theme specific.

    Hi theregoesjb,

    I’m currently trying to figure out the same thing. From what I can tell (well in the theme I’m customising anyway), the name of the theme options panel, as it appears in the admin panel, is called from core_functions.php. This file was sitting within the epanel folder of the theme package I downloaded. I’m sure you’ll find something similar in your package.

    This is the script that I think pertains to what we both want to do:

    /* Save/Reset actions | Adds theme options to WP-Admin menu */
    add_action(‘admin_menu’, ‘et_add_epanel’);
    function et_add_epanel() {
    global $themename, $shortname, $options;
    $epanel = basename(__FILE__);

    if ( isset( $_GET[‘page’] ) && $_GET[‘page’] == $epanel && isset( $_POST[‘action’] ) ) {
    epanel_save_data( ‘js_disabled’ ); //saves data when javascript is disabled
    }

    $core_page = add_theme_page( $themename . ‘ ‘ . esc_html__( ‘Options’, $themename ), $themename . ‘ ‘ . esc_html__( ‘Theme Options’, $themename ), ‘switch_themes’, basename(__FILE__), ‘et_build_epanel’ );

    add_action( “admin_print_scripts-{$core_page}”, ‘et_epanel_admin_js’ );
    add_action(“admin_head-{$core_page}”, ‘et_epanel_css_admin’);
    }

    That’s as far as I’ve got. You may have already figured out the answer, and if you have, I’d love to know!

    Thread Starter theregoesjb

    (@theregoesjb)

    Hi forbreakfast, I ended up changing the themes name with a complete find and replace (and changing the themes folder name of course).

    Probably not what you are looking for (and has to be done before uploading obv) but I think you are right on track, i will prob have a trial and error session with that next time i get a chance. Thanks for sharing!

    I´m trying to solve the same problem, I dont know why I cant find class=”wp-menu-name”

    I dont know what forbreakfast did, and I dont seem to find a way to change that name, any new finding?

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘how to change theme options name in dashboard?’ is closed to new replies.