Forums

How to remove categories (2 posts)

  1. talblind
    Member
    Posted 3 years ago #

    This must have been answered a thousand times, but I've spent 20 minutes trying to find related posts. Sorry!

    I don't want categories. I just want tags. How do I remove the whole "Categories"-section from my blog? When I delete categories.php nothing happens... The text goes back to English (my blog is Danish), that's all.

  2. MichaelH
    Volunteer
    Posted 3 years ago #

    First, every post has to belong to at least one category. If you don't specify a category when writing a post, WordPress will automatically assign the Default Category.

    But you can stop categories from displaying on your blog. For example, if you were using the WordPress Default theme you would delete this code:

    In wp-content/themes/default/index.php delete:
    Posted in <?php the_category(', ') ?>

    In wp-content/themes/default/sidebar.php delete:
    <?php wp_list_categories('show_count=1&title_li=<h2>Categories</h2>'); ?>

    In wp-content/themes/default/single.php delete:
    and is filed under <?php the_category(', ') ?>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags