WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] How to remove meta items in my blog.

[Resolved] How to remove meta items in my blog.

  • Hello,

    I am using OfficeFolders 1.4 by Themocracy in my blog. I see Meta category and some links as shown below:

    Meta

    * Site Admin
    * Log out
    * RSS
    * Comments RSS
    * Valid XHTML
    * XFN
    * WP

    Can anybody let me know what this means, and how to customize/remove this widget.

    Thanks a lot!

Viewing 11 replies - 1 through 11 (of 11 total)
  • seenuFour,

    Check in the sidebar.php file to remove the meta information.

    [no sigs per forum rules!]

    Hi,

    You need to edit the sidebar.php file of your theme and remove the code which you want to be for META.

    Thanks,

    Shane G.

    The only meta code I see is :

    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('blog_charset'); ?>" />

    I deleted this. I still see the meta widget.

    Can you guys tell me exactly what code should I delete in sidebar.php

    Thanks

    Srinivas

    seenuFour,

    The code you erased should be in the header.php file. Please replace it. The code you are looking for typically resides in the sidebar.php file.

    Are you sure this is a widget? If so then check under Appearance > Widgets and remove it.

    [no sigs per forum rules!]

    I replaced the code back. Actually the default theme OfficeFolders 1.4 doesn’t come with any widgets. When I click widgets in the dashboard, I don’t see any widgets on the side.

    There is no meta widget showing under widgets. So I can’t remove the meta category.

    Is there any other way that I can customize/delete this meta links that are showing right below Archives.

    Thanks

    seenuFour,

    Open the sidebar.php file and delete the following lines starting at 54:

    <li class="widget" id="meta"><h3><?php _e('Meta'); ?></h3>
    <ul>
    <?php wp_register(); ?>
    <li><?php wp_loginout(); ?></li>
    
    <li><a href="<?php bloginfo('rss2_url'); ?>" title="<?php _e('Syndicate this site using RSS'); ?>"><?php _e('RSS'); ?></a></li>
    
    <li><a href="<?php bloginfo('comments_rss2_url'); ?>" title="<?php _e('The latest comments to all posts in RSS'); ?>"><?php _e('Comments RSS'); ?></a></li>
    <li><a href="http://validator.w3.org/check/referer" title="<?php _e('This page validates as XHTML 1.0 Transitional'); ?>"><?php _e('Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr>'); ?></a></li>
    <li><a href="http://gmpg.org/xfn/"><abbr title="XHTML Friends Network">XFN</abbr></a></li>
    <li><a href="http://wordpress.org/" title="<?php _e('Powered by WordPress, state-of-the-art semantic personal publishing platform.'); ?>"><abbr title="WordPress">WP</abbr></a></li>
    
    <?php wp_meta(); ?>
    </ul>
    </li>

    This is the code for the Meta information.

    [no sigs per forum rules!]

    Here is the sidebar.php under “html/wp-admin”

    <?php
    /**
     * Quick way to create a WordPress Post.
     *
     * @package WordPress
     * @subpackage Administration
     */
    
    /**
     * @var string
     * @name $mode
     */
    $mode = 'sidebar';
    
    /** WordPress Administration Bootstrap */
    require_once('admin.php');
    
    if ( ! current_user_can('edit_posts') )
    	wp_die(__('Cheatin’ uh?'));
    
    $post = get_default_post_to_edit();
    
    ?><!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>
    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('blog_charset'); ?>" />
    <title><?php bloginfo('name') ?> &rsaquo; <?php _e('Sidebar'); ?></title>
    <style type="text/css" media="screen">
    body {
    	font-size: 0.9em;
    	margin: 0;
    	padding: 0;
    }
    form {
    	padding: 1%;
    }
    .tags-wrap p {
    	font-size: 0.75em;
    	margin-top: 0.4em;
    }
    .button-highlighted, #wphead, label {
    	font-weight: bold;
    }
    #post-title, #tags-input, #content {
    	width: 99%;
    	padding: 2px;
    }
    #wphead {
    	font-size: 1.4em;
    	background-color: #E4F2FD;
    	color: #555555;
    	padding: 0.2em 1%;
    }
    #wphead p {
    	margin: 3px;
    }
    .button {
    	font-family: "Lucida Grande", "Lucida Sans Unicode", Tahoma, Verdana, sans-serif;
    	padding: 3px 5px;
    	margin-right: 5px;
    	font-size: 0.75em;
    	line-height: 1.5em;
    	border: 1px solid #80b5d0;
    	-moz-border-radius: 3px;
    	-khtml-border-radius: 3px;
    	-webkit-border-radius: 3px;
    	border-radius: 3px;
    	cursor: pointer;
    	background-color: #e5e5e5;
    	color: #246;
    }
    .button:hover {
    	border-color: #535353;
    }
    .updated {
    	background-color: #FFFBCC;
    	border: 1px solid #E6DB55;
    	margin-bottom: 1em;
    	padding: 0 0.6em;
    }
    .updated p {
    	margin: 0.6em;
    }
    </style>
    </head>
    <body id="sidebar">
    <div id="wphead"><p><?php bloginfo('name') ?> &rsaquo; <?php _e('Sidebar'); ?></p></div>
    <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 esc_attr($user_ID) ?>" />
    <input type="hidden" name="mode" value="sidebar" />
    <input type="hidden" name="ping_status" value="<?php echo esc_attr($post->ping_status); ?>" />
    <input type="hidden" name="comment_status" value="<?php echo esc_attr($post->comment_status); ?>" />
    <?php wp_nonce_field('add-post');
    
    if ( 'b' == $_GET['a'] )
    	echo '<div class="updated"><p>' . __('Post published.') . '</p></div>';
    elseif ( 'c' == $_GET['a'] )
    	echo '<div class="updated"><p>' . __('Post saved.') . '</p></div>';
    ?>
    <p>
    <label for="post-title"><?php _e('Title:'); ?></label>
    <input type="text" name="post_title" id="post-title" size="20" tabindex="1" autocomplete="off" value="" />
    </p>
    
    <p>
    <label for="content"><?php _e('Post:'); ?></label>
    <textarea rows="8" cols="12" name="content" id="content" style="height:10em;line-height:1.4em;" tabindex="2"></textarea>
    </p>
    
    <div class="tags-wrap">
    <label for="tags-input"><?php _e('Tags:') ?></label>
    <input type="text" name="tags_input" id="tags-input" tabindex="3" value="" />
    <p><?php _e('Separate tags with commas'); ?></p>
    </div>
    
    <p>
    <input name="saveasdraft" type="submit" id="saveasdraft" tabindex="9" accesskey="s" class="button" value="<?php esc_attr_e('Save as Draft'); ?>" />
    <?php if ( current_user_can('publish_posts') ) : ?>
    <input name="publish" type="submit" id="publish" tabindex="6" accesskey="p" value="<?php esc_attr_e('Publish') ?>" class="button button-highlighted" />
    <?php endif; ?>
    
    </p>
    </div>
    </form>
    
    </body>
    </html>

    I don’t see any widgets doc4…,

    I still have the same problem.

    seenuFour,

    I see the problem, you are looking at the wrong file. The files to the theme are located under ( wp-content/themes/ ) not ( wp-admin ) then select your theme folder ( officefolders ) and open the sidebar.php file.

    An alternative and suggested way of alerting the code: Log into your WordPress site and visit “Appearance > Edit” then select “sidebar.php” from the right side options to make alterations.

    Check this file and delete the meta information.

    [no sigs per forum rules!]

    doc4
    An alternative and suggested way of alerting the code: Log into your WordPress site and visit “Appearance > Edit” then select “sidebar.php” from the right side options to make alterations.

    Check this file and delete the meta information.

    I was able to delete the meta information.

    Thanks

    Srinivas

    I have created an explanation on how to remove meta from newer wordpress version.

    http://www.sebastianklodda.com/index.php/archives/remove-meta-tag-from-wordpress-sidebar

    Even simpler than that is to:
    1. Log into your account
    2. Go to Appearance > Widgets
    3. Add widgets to the sidebar on the right

    Meta is simply a default if that sidebar is empty of widgets.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘[Resolved] How to remove meta items in my blog.’ is closed to new replies.
Skip to toolbar