Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #5806

    When I click on “HOME” on the menu, the page says “Archive for HOME” – how can i get rid of that?

    Similarly, on clicking any category, it says “Archive for Category” – I would like to remove that.

    On clicking all other menus, it repeats the name of the menu again on the page – how do i get rid of that?

    how do I make my “HOME” page same as the one I get when I click my logo?

    Thanks!

    #51813

    Hey,

    1) You can remove the “Archive for…” text in archive.php – search fot following code and delete it:

    <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>

    2) I’m not sure if I understood you right but it sounds like you want to remove the page titles. f yes open up page.php and template-fullwidth.php and delete:

    <h1 class="entry-heading">
    <a href="<?php echo get_permalink() ?>" rel="bookmark" title="<?php _e('Permanent Link:','newscast')?> <?php the_title(); ?>">
    <?php the_title(); ?>
    </a>
    </h1>

    3) You can create a custom menu (Appearance > Menus) – I’d just create a link, call it “home” and link it to the main url.

    #51814

    Hi Dude – Thanks for these answers.

    1&2) Is it the same to remove the “contact” title from the contact page?

    3) so now – is this “HOME” my main index page and will it have all my latest posts in order of post date?

    Thanks!

    #51815

    Hey,

    1) Yes but you need to remove the code from template_contact.php

    2) Yes of course – just link to your main domain/frontpage/index.php.

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

The topic ‘Remove Repeated Names’ is closed to new replies.