Forums

how to remove "Category Archives:XX " text on Category Page (5 posts)

  1. Cloe
    Member
    Posted 1 year ago #

    I can't find any answers for removing the text "Category Archives: category name" on the top on each category page.
    I want my webpage more simple and clean.

    please let me know.

    Thanks in advance!!!

  2. flick
    Member
    Posted 1 year ago #

    It's best to look at your theme templates (probably archive.php) and edit the files so they don't show the words you've mentioned in your post.

  3. Cloe
    Member
    Posted 1 year ago #

    what do I have to change below?
    please please let me know~~

    Thanks again.
    ---------------------------------------------

    <?php get_header( ); ?>
    <div id="container">
    <div id="content">

    <h1 class="page-title">
    <?php if ( is_day() ) : ?>
    <?php printf( __( 'Daily Archives: <span>%s</span>', 'codium_extend' ), get_the_date() ); ?>
    <?php elseif ( is_month() ) : ?>
    <?php printf( __( 'Monthly Archives: <span>%s</span>', 'codium_extend' ), get_the_date('F Y') ); ?>
    <?php elseif ( is_year() ) : ?>
    <?php printf( __( 'Yearly Archives: <span>%s</span>', 'codium_extend' ), get_the_date('Y') ); ?>
    <?php else : ?>
    <?php _e( 'Blog Archives', 'codium_extend' ); ?>
    <?php endif; ?>
    </h1>
    <div class="linebreak clear"></div>

    <?php if (have_posts()) : ?>
    <?php rewind_posts(); while (have_posts()) : the_post(); ?>

    <div class="dp100">
    <span class="cat-links <?php codium_extend_post_class() ?>"><?php printf(__('%s', 'codium_extend'), get_the_category_list(' ')) ?></span>
    </div>

    <!-- Begin post -->
    <div id="post-<?php the_ID() ?>" class="<?php codium_extend_post_class() ?>">
    <h2 class="entry-title">" title="<?php printf(__('Link to %s', 'codium_extend'), esc_html(get_the_title(), 1)) ?>" rel="bookmark"><?php the_title() ?></h2>
    <div class="entry-date"><abbr class="published" title="<?php the_time('Y-m-d\TH:i:sO'); ?>"><?php unset($previousday); printf(__('%1$s – %2$s', 'codium_extend'), the_date('', '', '', false), get_the_time()) ?></abbr></div>

    <div class="entry-content">
    <?php the_content(''.__('read more <span class="meta-nav">»</span>', 'codium_extend').''); ?>
    <?php wp_link_pages("\t\t\t\t\t<div class='page-link'>".__('Pages: ', 'codium_extend'), "</div>\n", 'number'); ?>
    </div>
    <div class="clear"></div>
    <div class="entry-meta">
    <?php the_tags(__('<span class="tag-links">Tags ', 'codium_extend'), ", ", "</span>\n\t\t\t\t\t<span class=\"meta-sep\">|</span>\n") ?>
    <?php edit_post_link(__('Edit', 'codium_extend'), "\t\t\t\t\t<span class=\"edit-link\">", "</span>\n\t\t\t\t\t<span class=\"meta-sep\">|</span>\n"); ?>
    <span class="comments-link"><?php comments_popup_link(__('Comment (0)', 'codium_extend'), __('Comment (1)', 'codium_extend'), __('Comments (%)', 'codium_extend')) ?></span>
    </div>

    </div>
    <!-- End post -->

    <div class="linebreak clear"></div>

    <?php endwhile; endif ?>

    <div class="center">
    <?php if(function_exists('wp_pagenavi')) {
    wp_pagenavi();
    } else {?>
    <div class="navigation mobileoff"><p><?php posts_nav_link(); ?></p></div>
    <?php } ?>
    <div class="navigation_mobile"><p><?php posts_nav_link(); ?></p></div>
    </div>

    </div><!-- #content -->
    </div><!-- #container -->

    <?php get_sidebar() ?>
    <?php get_footer() ?>

  4. flick
    Member
    Posted 1 year ago #

    Just checked Codium - in this instance, it does actually come with category.php (sorry for sending you to archive.php) so the line you want to edit is (between 4 and 6):

    <h1 class="page-title"><?php
    					printf( __( 'Category Archives: %s', 'twentyten' ), '<span>' . single_cat_title( '', false ) . '</span>' );
    			?></h1>

    You should be able to see the words: Category Archives which you can just remove.

  5. Cloe
    Member
    Posted 1 year ago #

    Wow! It worked!
    I'm so happy now!! :)

    Thanks a lot!!!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.