WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How to prevent Tags showing at beginning of post, in Classic Theme? (5 posts)

  1. chris-melchior
    Member
    Posted 4 years ago #

    I am using Classic Theme (with WordPress MU, 2.8.5), and would like to prevent any Tags showing at the top posts. How to change this?

    thanks in advance for any info!

    Chris

  2. Look for this this code in the themes posts template

    <?php the_tags(); ?>

    and remove it along with any div or p tags that are wrapped around it.

  3. chris-melchior
    Member
    Posted 4 years ago #

    OK, thanks. Where would I find the "posts template"?

    The only files I have in themes/classic, are :-

    comments-popup.php
    comments.php
    footer.php
    functions.php
    header.php
    index.php
    rtl.css
    screenshot.png
    sidebar.php
    style.css

    I've got a "page.php" file in both "themes/default" and "themes/home", is it one of those?

    Thanks!
    Chris

  4. It is in the index.php on line 15 that contains:
    <div class="meta"><?php _e("Filed under:"); ?> <?php the_category(',') ?> — <?php the_tags(__('Tags: '), ', ', ' — '); ?> <?php the_author() ?> @ <?php the_time() ?> <?php edit_post_link(__('Edit This')); ?></div>

    This is what shows all the meta data about the post. Remove the whole line or individual items you do not want to show.

    Or you could edit your style.css and add this line to it:

    .meta {display:none;}

  5. chris-melchior
    Member
    Posted 4 years ago #

    That works perfectly, thanks very much!!

    Chris

Topic Closed

This topic has been closed to new replies.

About this Topic