How can I remove the meta info from my posts?

resolved (7 posts) (3 voices)

  1. MiguelGonzalez
    Member

    I tried removing this:
    div class="top_metadata">
    < ?php $get_year = get_the_time('Y'); $get_month = get_the_time('m'); ? >
    Posted ">< ?php the_time('M j Y') ?> by < ?php the_author_posts_link(); ? >
    < ?php if ( count(($categories=get_the_category())) > 1 || $categories[0]->cat_ID != 1 ) : ? >
    in < ?php the_category(', ') ? >
    <?php endif; ?>
    with < ?php comments_popup_link('0 Comments', '1 Comment', '% Comments'); ? >
    </div>

    From the following files:
    wp-content/themes/infocus/archive.php
    wp-content/themes/infocus/lib/includes/template-single.php
    wp-content/themes/infocus/lib/includes/template-blog.php

    but it hasn't worked, can anyone help???

    Posted 7 years ago #
  2. Chris
    Support

    Hi MiguelGonzalez,

    That's the correct code and files to remove the Meta Data from the posts.

    Can you provide a link to your site and post a screenshot of the code you're trying to remove?

    Posted 7 years ago #
  3. MiguelGonzalez
    Member

    Hi Chris,

    I pm'd you the links and screenshot.

    Thanks,
    M.

    Posted 7 years ago #
  4. Webtreats
    Support

    Hi MiguelGonzalez,

    Open up the following files on your sever and delete the following line #'s

    wp-content/themes/infocus/lib/includes/template-single.php - Line #'s 177 - 184

    wp-content/themes/infocus/lib/includes/template-single.php - Line #'s 215 - 224

    wp-content/themes/infocus/comments.php - Line # 66

    This should remove all of the code that you'd like.

    Posted 7 years ago #
  5. MiguelGonzalez
    Member

    Still doesn't work for the top and bottom meta - comments did work.

    Any ideas why?

    Posted 7 years ago #
  6. MiguelGonzalez
    Member

    have managed to get rid of the meta through CSS visibility property but it's not ideal. thanks

    Posted 7 years ago #
  7. Webtreats
    Support

    Hi MiguelGonzalez,

    Glad to hear you were able to remove the meta data with CSS.

    The files and line #'s are correct, do you have a cache plugin installed on your site?

    Posted 7 years ago #

Reply

You must log in to post.

Construct WordPress Theme
Construct wordpress theme
Myriad WordPress Theme
Myriad wordpress theme
Method WordPress Theme
Method wordpress theme
Fusion WordPress Theme
Fusion wordpress theme
Elegance WordPress Theme
Elegance wordpress theme
Echelon WordPress Theme
Echelon wordpress theme
Dejavu WordPress Theme
Dejavu wordpress theme
Modular WordPress Theme
Modular wordpress theme