How to Remove it in Wordpress ?

Discussion in 'WordPress' started by bushib, Apr 18, 2008.

  1. #1
    Hi,

    My url is http://www.skincarequeries.com/

    Any help that how can I remove the followings from the right side column.

    Meta:
    * Site Admin
    * Log out
    * Valid XHTML
    * XFN
    * WordPress

    There is no Widget selected in the Designs>Widgets.

    Any help will be appreciated.

    regards
    bushib
     
    bushib, Apr 18, 2008 IP
  2. mizaks

    mizaks Well-Known Member

    Messages:
    2,066
    Likes Received:
    126
    Best Answers:
    0
    Trophy Points:
    135
    #2
    look for a file called sidebar.php in your theme directory (may have slight variation to the name) and remove the Meta section.
     
    mizaks, Apr 18, 2008 IP
  3. ilovelinux

    ilovelinux Peon

    Messages:
    285
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #3
    if you don't know anything about php, then you might need some slightly professional's help. PM me if interested.
     
    ilovelinux, Apr 18, 2008 IP
  4. sizzler_chetan

    sizzler_chetan Prominent Member

    Messages:
    7,838
    Likes Received:
    664
    Best Answers:
    0
    Trophy Points:
    390
    #4
    Can you paste the code of the sidebar theme file here?
    Its just a small block of code that needs to be removed.
     
    sizzler_chetan, Apr 18, 2008 IP
  5. bushib

    bushib Banned

    Messages:
    1,096
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Hi there,

    The code is here


    <?php
    $mode = 'sidebar';
    
    require_once('admin.php');
    
    if ( ! current_user_can('edit_posts') )
    	wp_die(__('Cheatin&#8217; 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>
    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=UTF-8" />
    <title><?php _e('WordPress &#8250; Posted'); ?></title>
    <?php
    wp_admin_css( 'css/global' );
    wp_admin_css();
    ?>
    </head>
    <body>
    	<p><?php _e('Posted !'); ?></p>
    	<p><?php printf(__('<a href="%s">Click here</a> to post again.'), 'sidebar.php'); ?></p>
    </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>
    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('blog_charset'); ?>" />
    <title><?php _e('WordPress &#8250; Sidebar'); ?></title>
    <?php
    wp_admin_css( 'css/global' );
    wp_admin_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"><a href="http://wordpress.org/" rel="external">WordPress</a></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" />
    <?php wp_nonce_field('add-post'); ?>
    <p><?php _e('Title:'); ?>
    <input type="text" name="post_title" size="20" tabindex="1" style="width: 100%;" />
    </p>
    <p><?php _e('Categories:'); ?>
    <span class="sidebar-categories">
    <?php dropdown_categories(); ?>
    </span>
    </p>
    <p>
    Post:
    <textarea rows="8" cols="12" style="width: 100%" name="content" tabindex="2"></textarea>
    </p>
    <p>
    	<input name="saveasdraft" type="submit" id="saveasdraft" tabindex="9" value="<?php _e('Save as Draft'); ?>" />
    <?php if ( current_user_can('publish_posts') ) : ?>
    	<input name="publish" type="submit" id="publish" tabindex="6" value="<?php _e('Publish') ?>" class="button button-highlighted" />
    <?php endif; ?>
    </p>
    </div>
    </form>
    
    </body>
    </html>
    <?php
    }
    ?>
    PHP:

    I want to remove all the following from the right side column without disturbing the alignment of the column or page.

    Meta:
    * Site Admin
    * Log out
    * Valid XHTML
    * XFN
    * WordPress

    Regards
    bushib
     
    bushib, Apr 18, 2008 IP
  6. od3n

    od3n Active Member

    Messages:
    715
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    60
    #6
    that seems not the right code. it should be on the theme folder you use now. it will be like sidebar.php. please paste the right one.
     
    od3n, Apr 18, 2008 IP
  7. ilovelinux

    ilovelinux Peon

    Messages:
    285
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Yep, I agree with 0d3n. Browse the wp-content/themes/<template name> then you can find the sidebar.php there.
     
    ilovelinux, Apr 18, 2008 IP
  8. just-4-teens

    just-4-teens Peon

    Messages:
    3,967
    Likes Received:
    168
    Best Answers:
    0
    Trophy Points:
    0
    #8
    it may not be in your sidebar.php folder if you are using widgets, check the design (presentation if your using wordpress 2.3) and see if the meta widget is loaded.
     
    just-4-teens, Apr 19, 2008 IP