Edit meta widget (block)
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.
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.
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
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.
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="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.
- The topic ‘Edit meta widget (block)’ is closed to new replies.