WordPress.org

Ready to get started?Download WordPress

Forums

Edit meta widget (block) (9 posts)

  1. HotJoint
    Member
    Posted 7 years ago #

    Well I just installed a copy of WP in my server and is great but i cant find where is the code so i can translate and edit the links of the "meta" widget or block.

    Im new to this system so if u can use some newbie directions it would be great.

    In other words ┬┐Where i can find the code of the widgets? specially the "meta" one.

    Many Thanx

  2. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    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.

  3. HotJoint
    Member
    Posted 7 years ago #

    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.

  4. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    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.

  5. HotJoint
    Member
    Posted 7 years ago #

    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

  6. HotJoint
    Member
    Posted 7 years ago #

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

    Many Thanx

  7. Kineta
    Member
    Posted 6 years ago #

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

    thanks

  8. marcbkk
    Member
    Posted 6 years ago #

    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.

  9. brokenclaw
    Member
    Posted 6 years ago #

    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="http://validator.w3.org/check?uri=referer" title="Valid XHTML 1.0 Transitional">Valid XHTML</a></li>

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

Topic Closed

This topic has been closed to new replies.

About this Topic