WordPress.org

Ready to get started?Download WordPress

Forums

How can I alter the entries in the 'meta' menu? (8 posts)

  1. VafeR
    Member
    Posted 9 years ago #

    Hi all -

    I'm a new WordPress user who would like to make a few simple modifications to the text of the 'meta' menu that appears by default on the lower right. (Really, I just want the 'login' link and RSS links to appear, and I'd like to change the title from 'meta' to something else.)

    I've done a full text search through all of the flat files in the install, to no avail -- which makes me wonder if the information for that menu is stored in the database somewhere? I'm stuck.

    Thanks so much for your time,
    ~ Jason

  2. Mark (podz)
    Support Maven
    Posted 9 years ago #

    It's in sidebar.php, at the bottom - honest !

  3. VafeR
    Member
    Posted 9 years ago #

    blush.

    feeling foolish, but —
    i don’t see it there.

    there is a little snippet of CSS that looks like it governs the style of the text in question:

    .sidebar-categories {
    display: block;
    height: 6.6em;
    overflow: auto;
    background-color: #f4f4f4;
    }
    .sidebar-categories label {
    font-size: 10px;
    display: block;
    width: 90%;
    }

    but i don’t see any text reflecting the content (ie, meta - site admin - logout - etc...)

    i am very new to php, so it’s very likely that i’m missing something obvious...

    please clarify?

    ~ jason

  4. rhealz
    Member
    Posted 9 years ago #

    You're looking at the CSS - open up that actual file (sidebar.php) and then you should find what you're looking for.

  5. Guycom
    Member
    Posted 9 years ago #

    I have the same problem. what am i missing? Why couldn't meta be a link set like bloglines?

    Where in here is meta?

    <?php
    $mode = 'sidebar';

    $standalone = 1;
    require_once('admin-header.php');

    get_currentuserinfo();

    if ($user_level == 0)
    die ("Cheatin' uh ?");

    if ('b' == $_GET['a']) {

    ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>WordPress › Posted</title>
    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=UTF-8" />
    <link rel="stylesheet" href="wp-admin.css" type="text/css" />
    </head>
    <body
    Posted !
    Click here to post again.
    </body>
    </html><?php

    } else {

    ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>WordPress › Sidebar</title>
    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('blog_charset'); ?>" />
    <link rel="stylesheet" href="wp-admin.css" type="text/css" />
    <style type="text/css" media="screen">
    form {
    padding: 3px;
    }
    .sidebar-categories {
    display: block;
    height: 6.6em;
    overflow: auto;
    background-color: #f4f4f4;
    }
    .sidebar-categories label {
    font-size: 10px;
    display: block;
    width: 90%;
    }
    </style>
    </head>
    <body id="sidebar">
    <h1 id="wphead">WordPress</h1>
    <form name="post" action="post.php" method="POST">
    <div><input type="hidden" name="action" value="post" />
    <input type="hidden" name="user_ID" value="<?php echo $user_ID ?>" />
    <input type="hidden" name="mode" value="sidebar" />
    Title:
    <input type="text" name="post_title" size="20" tabindex="1" style="width: 100%;" />

    Categories:
    <span class="sidebar-categories">
    <?php dropdown_categories(); ?>
    </span>

    Post:
    <textarea rows="8" cols="12" style="width: 100%" name="content" tabindex="2"></textarea>

    <input name="saveasdraft" type="submit" id="saveasdraft" tabindex="9" value="Save as Draft" />
    <input name="publish" type="submit" id="publish" tabindex="6" style="font-weight: bold;" value="Publish" />

    </div>
    </form>

    </body>
    </html>
    <?php
    }
    ?>

  6. Michael Adams (mdawaffe)
    Member
    Posted 9 years ago #

    that's wp-admin/sidebar.php
    you want wp-content/themes/_your_current_theme_dir_/sidebar.php

  7. codyhess
    Member
    Posted 8 years ago #

    Strangely enough, I found the meta menu information in the Main Template, or index.php file of my 'Connections' theme.

  8. KidDgX
    Member
    Posted 7 years ago #

    Quoted by podz:
    It's in sidebar.php, at the bottom - honest !

    I have seen this question many times as well. The answer that I am not able to find is where does this information get called from?

    For instance the lines:

    <?php wp_register(); ?>
    <li><?php wp_loginout(); ?></li>

    Where are the variables coming from because depending on whether you are logged in or not depends on what displays.

    If not logged in, it will display:

    Register
    Login

    If logged in they display:

    Site Admin
    Logout

    Where is the code that is testing whether you're logged in or not, and where is it passing the variables to the sidebar.php?

    I am using a hacked up version of the Painted-Desert theme so I have had to rewrite a lot of the code to make the theme work as I want it. I just want to be able to adjust the meta menu and how they are displayed.

    You can view my site: The RIOT

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.