Support » Themes and Templates » Edit meta widget (block)

Viewing 8 replies - 1 through 8 (of 8 total)
  • Moderator Samuel Wood (Otto)

    (@otto42) Admin

    Instead of editing the meta widget, just use a text widget and put the HTML links you want in there.

    I can tell you how to edit the meta widget, but frankly using the text widget is simpler and more customizable.

    Well yeah but i want to change the links, i mean it says something like “login” well i just want another words and add some links like a little menu.

    I know i can add a text widget but i want to join the meta one with other important user menu links i have.

    Moderator Samuel Wood (Otto)

    (@otto42) Admin

    Well, what I meant was to replace the meta widget with a text widget. You can then make it contain anything you like, including the existing meta links, altered.

    But if you really want to edit the thing (bad idea, but who am I to judge?), it’s in wp-includes/widgets.php. Look for function wp_widget_meta.

    oooo i understand now. But there’s a little problem. I dont know how to code in php so i cant make my widget to look in one way (register, login) to the guests and in other way (admin, logout) to registered users.

    Thats my problem

    Many thanx this post is solved. i edit the widget directly.

    Many Thanx

    Exactly what I’m trying to do. Where did you edit the widget? What file is it in?


    If you want to remove everything from the Meta menu (in WordPress Version 2.5.1) except for the Site Admin and Login/Logout links in the Meta menu then go to the widgets.php file in the wp-includes directory and remove lines 532-535.

    If you want to change the name of the Meta menu to something else go to line 525 and change where it says ‘Meta’ on that line to whatever you like within the quotes.

    I hope this helps.

    Thanks for the conversation. I was able to find what I needed without asking a question (which, of course, is one of the main advantages of a forum). I wanted to add a “Valid XHTML” tag in the Meta widget. I found the php file and the List of meta links within it. I added:

    <li><a href="" title="Valid XHTML 1.0 Transitional">Valid XHTML</a></li>

    into the list and it worked as desired. Thanks for your help.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Edit meta widget (block)’ is closed to new replies.