Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #22187

    Hi there.

    We are using a Newscast 4 in 1 theme, as follows: http://jllhk-events.com/category/upcoming-events/

    From the categories archives, we would like to remove and/or edit the title for “Archive for [xxx]” for all current (and future) category archives: Upcoming Events + Past Events.

    Please provide separate options for:

    – Removing the title entirely.

    – Changing it to our liking (e.g. “Archive for Upcoming Events” —> “Upcoming Events”).

    Thanks.

    ConduitComms

    #114500

    Hi,

    Open archive.php and find this code

    <h2><?php /* If this is a category archive */ if (is_category()) { ?>
    <?php _e('Archive for','newscast'); ?> <?php echo single_cat_title(); ?>

    <?php /* If this is a daily archive */ } elseif (is_day()) { ?>
    <?php _e('Archive for','newscast'); ?> <?php the_time('F jS, Y'); ?>

    <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
    <?php _e('Archive for','newscast'); ?> <?php the_time('F, Y'); ?>

    <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
    <?php _e('Archive for','newscast'); ?> <?php the_time('Y'); ?>

    <?php /* If this is a search */ } elseif (is_search()) { ?>
    <?php _e('Search Results','newscast'); ?>

    <?php /* If this is an author archive */ } elseif (is_author()) { ?>
    <?php _e('Author Archive','newscast'); ?>

    <?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
    <?php _e('Blog Archives','newscast'); ?>
    <?php } ?></h2>

    You can remove the Archive for part and leave it blank.

    I guess in your case you need to change

    <?php _e('Archive for','newscast'); ?> <?php echo single_cat_title(); ?>

    to

    <?php _e('','newscast'); ?> <?php echo single_cat_title(); ?>

    Regards,

    Ismael

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Remove/edit "Archive for [xxx]"’ is closed to new replies.