WordPress.org

Ready to get started?Download WordPress

Forums

How should I rename "Widgets" entry on Administration Panel? (9 posts)

  1. peter_hartree
    Member
    Posted 4 years ago #

    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

  2. Samuel B
    moderator
    Posted 4 years ago #

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

  3. peter_hartree
    Member
    Posted 4 years ago #

    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');

  4. Samuel B
    moderator
    Posted 4 years ago #

    on like line 23 of widgets.php

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

    is that what you are looking for?

  5. peter_hartree
    Member
    Posted 4 years ago #

    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.

  6. Samuel B
    moderator
    Posted 4 years ago #

    no - it does what you mention
    hmmm...I'll have a look around

  7. peter_hartree
    Member
    Posted 4 years ago #

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

  8. peter_hartree
    Member
    Posted 4 years ago #

  9. mhains
    Member
    Posted 4 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic