Arclite theme-how to get rid of the word “archives”
-
https://www.anythinggoesgourmet.com
When a post is viewed by using the categories (in the navbar and in the side widget), the following words show up as an addition to every post:
“Archive for category”
then the post title.I want to get rid of those three words.
I am a newbie to WP and html. I found that this is generating from the archive.php, but I don’t know how to fix it. Here is the relevant code (I think):
——————————————————-
<?php if (have_posts()) : ?>
<?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
<?php /* If this is a category archive */ if (is_category()) { ?>
<h1 class=”pagetitle”><?php printf( __(‘Archive for category %s’, ‘arclite’), single_cat_title(”, false)); ?></h1>
<?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
<h1 class=”pagetitle”><?php printf( __(‘Posts Tagged %s’, ‘arclite’), single_cat_title(”, false) ); ?></h1>
<?php /* If this is a daily archive */ } elseif (is_day()) { ?>
<h1 class=”pagetitle”><?php printf(__(‘Archive for %s’, ‘arclite’), get_the_time(__(‘F jS, Y’,’arclite’))); ?></h1>
<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
<h1 class=”pagetitle”><?php printf(__(‘Archive for %s’, ‘arclite’), get_the_time(__(‘F, Y’,’arclite’))); ?></h1>
<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
<h1 class=”pagetitle”><?php printf(__(‘Archive for %s’, ‘arclite’), get_the_time(__(‘Y’,’arclite’))); ?></h1>
<?php /* If this is an author archive */ } elseif (is_author()) { ?>
<h1 class=”pagetitle”><?php _e(‘Author Archive’,’arclite’); ?></h1>
<?php /* If this is a paged archive */ } elseif (isset($_GET[‘paged’]) && !empty($_GET[‘paged’])) { ?>
<h1 class=”pagetitle”><?php _e(‘Blog Archives’,’arclite’); ?></h1>
<?php } ?>
—————————————————————-
I tried deleting the words ‘Archive for %’s” but that left the word arclite still showing on the site. Then I deleted the word ‘arclite’ as well – that returned all kinds of errors.Can anybody help me out here, please?
- The topic ‘Arclite theme-how to get rid of the word “archives”’ is closed to new replies.