• peter_hartree

    (@peter_hartree)


    I’m trying to rename the “Widgets” entry on the left navigation of the administration panel.

    I can see that in /wp-admin/menu.php, most of the menu items are added and given their respective display names. But the widgets entry (i.e. the link to widgets.php) is not added in this file.

    I’ve been searching all through the /wp-admin/ folder and simply cannot find the place where the “Widgets” link is added to the navigation.

    It is my hope that some generous soul on this forum will be able to enlighten me as to where I should be looking.

    Many thanks in advance,
    Peter

Viewing 8 replies - 1 through 8 (of 8 total)
  • Samuel B

    (@samboll)

    I always assumed it was in /wp-admin/widgets.php

    Thread Starter peter_hartree

    (@peter_hartree)

    Samboll, thanks for your rapid reply. I would have thought so too, but within that file I am unable to find the line in which it is added. I’m sorry to trouble you further, but if you do know where it is, I’d be grateful if you could point this out to me.

    I’ve been looking for something along the lines of what I see in menu.php, e.g.

    $submenu['themes.php'][5] = array(__('Themes'), 'switch_themes', 'themes.php');

    Samuel B

    (@samboll)

    on like line 23 of widgets.php

    $title = __( 'Widgets' );
    $parent_file = 'themes.php';

    is that what you are looking for?

    Thread Starter peter_hartree

    (@peter_hartree)

    Yep, I’m sorry I should have mentioned that I had already found that line and changed it to my desired value:

    $title = __( ‘Navigation’ );

    The effect which this had was to change the page heading title on the Widgets management page. The “Widgets” entry on the administration navigation panel (under the “Appearance” section) remains unchanged…

    I temporarily suspected a bizarre caching isssue but I have confirmed that this is not the case.

    It’s a little confusing. Does changing this lines value for you have the desired effect?

    Thanks for your continued help on this.

    Samuel B

    (@samboll)

    no – it does what you mention
    hmmm…I’ll have a look around

    Thread Starter peter_hartree

    (@peter_hartree)

    I’m yet to find a solution to this; if anyone has any ideas I’d be really grateful for your help.

    Thread Starter peter_hartree

    (@peter_hartree)

    mhains

    (@mhains)

    Have you found a solution to this? And if so, does it survive WP upgrades?

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘How should I rename “Widgets” entry on Administration Panel?’ is closed to new replies.