Forums

Removing Entry Meta and Comments from Pages (7 posts)

  1. pzproductions
    Member
    Posted 1 year ago #

    I would like to know how to remove my Entry-Meta and Comments from pages, but not posts. I update the code via FTP no through the WP-Admin so maybe I'm missing something.

    I've figured out how to close comments, but then the annoying text saying "comments are closed" still appears on the pages, I don't want that either.

    Any help is greatly appreciated, thanks!

    http://www.pzfantasyfootball.com

  2. sewmyheadon
    Member
    Posted 1 year ago #

    Hey pz,

    You're probably going to want to check your theme for the page.php file, if it exists.

    To remove the entry meta stuff, you'll want to look in the code for the code within <div class="entrytitle">:

    <div class="entrytitle">
    <h1><a href="http://pzfantasyfootball.com/about-me/" rel="bookmark" title="Permanent Link to About Me">About Me</a></h1>
    <em>Article Written by <strong>FinsFan5413</strong>
    May 24th, 2008</em>
    </div>

    You'll probably see some php code similar to the following:

    Article written by <?php the_author() ?>
    <?php the_time('F jS, Y') ?>

    To remove the comments from page.php, you'll want to look for the call to <?php comments_template(); ?>

  3. pzproductions
    Member
    Posted 1 year ago #

    Hmm.. unfortunately that file doesn't exist... I downloaded and customized the Simpla theme because it seems to be the easiest to customize... however a downside is that it's a minimalist theme and doesn't include a lot of the features I should probably have.

  4. sewmyheadon
    Member
    Posted 1 year ago #

    No, some themes don't include all possible templates. You definitely have an index.php file, though.

    You could copy the index.php file and save it as page.php and make the edits that I suggested.

    These may help:
    http://codex.wordpress.org/Stepping_Into_Templates
    http://codex.wordpress.org/Template_Hierarchy

  5. pzproductions
    Member
    Posted 1 year ago #

    Thank you very much... you have been very helpful.

  6. sewmyheadon
    Member
    Posted 1 year ago #

    No problem. :)

  7. philipcasey
    Member
    Posted 1 year ago #

    sewmyheadon, that's brilliant. thank you very much.

Topic Closed

This topic has been closed to new replies.

About this Topic