WordPress.org

Ready to get started?Download WordPress

Forums

Removing meta information on static pages (4 posts)

  1. photojunkie
    Member
    Posted 9 years ago #

    I am looking for a way to remove the meta information on some pages...

    I use WP to manage every page on my site.. this includes some static pages... like my links page (blogrolls can eat me) and my contact info page... I don't nead meta information on those pages... It just seems kinda dumb to have this really nicely formated page of links, with "Filed under: Uncategorized on April 7, 2005 @ 5:59 am" shown right on top.

    I want my posts to have this information, but not my static pages. Suggestions?

  2. iand
    Member
    Posted 9 years ago #

    Make a copy of index.php and name it page.php, then delete/ comment out the meta tags.

  3. photojunkie
    Member
    Posted 9 years ago #

    Hah... thought about it for thirty seconds after posting... Easy peasly...

    But just in case someone else comes looking to do the same.

    It's as easy as enclosing the extra data (meta and story title in my case) in a div...

    lets say... <div class="details">Meta Data!</div> for example.
    Then on every page I don't want the meta data to appear, just inserting first off
    ===============
    <style>
    .details {display: none}
    </style>
    ===============

    That takes care of it. It'd be nice if it were an option for pages out of the box though... but all in all a pretty simple work around.

  4. photojunkie
    Member
    Posted 9 years ago #

    ""Make a copy of index.php and name it page.php, then delete/ comment out the meta tags.""

    Oh.. hey, that's even better... thanks Ian D.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.