WordPress.org

Ready to get started?Download WordPress

Forums

Remove Category and Meta Data from sidebar (5 posts)

  1. mking
    Member
    Posted 8 years ago #

    Hello,
    I was wondering if anyone had any advice on how to remove "Category" and "Meta Data" from the side bar on the default WordPress blog (WordPress 1.5.2). I have searched the codex and found much info on editing or changing the sidebar items but not removing them completely from the page. I just want to see "archives" and "links" that I put up. Any suggestions would be appreciated. Thanks!

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

    Delete this to remove the category list:
    <li><h2>Categories</h2>
    <ul>
    <?php wp_list_cats('sort_column=name&optioncount=1&hierarchical=0'); ?>
    </ul>
    </li>

    Delete this to remove the Meta:
    <li><h2>Meta</h2>
    <ul>
    <?php wp_register(); ?>
    <li><?php wp_loginout(); ?></li>
    <li><a href="http://validator.w3.org/check/referer" title="This page validates as XHTML 1.0 Transitional">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="Powered by WordPress, state-of-the-art semantic personal publishing platform.">WordPress</a></li>
    <?php wp_meta(); ?>
    </ul>
    </li>

  3. moshu
    Member
    Posted 8 years ago #

    Delete?
    Open up your sidebar.php template in a plain text editor and in take a look at all those Template_Tags used in the code - and delete (or better comment out) what you don't need.

  4. mking
    Member
    Posted 8 years ago #

    Thanks so much podz and moshu! Delete worked great! and with the links I can learn why! Thanks again! Man WordPress rocks. Especially the support forums.

  5. bobdog
    Member
    Posted 7 years ago #

    Thanks moshu. I just installed WordPress a couple of days ago and I wanted to know the same thing. A search on this forum brought me to this post. I simply commented out the lines.

Topic Closed

This topic has been closed to new replies.

About this Topic