• Resolved fechto

    (@fechto)


    My homepage and other static pages show a date for the first part of the description in Google, so I would like to remove it. I see this line in page.php:

    <?php get_template_part( 'post-meta', get_post_type() ); ?>

    So how do I remove only the post-meta, but also keep it for posts?

    For background, I’m good with html and css, brutal with php.

    As a side note, I’ve set display: none; to it in css, but it’s easy enough to find when clicking view source.

    Thanks!

    Aaron

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter fechto

    (@fechto)

    Soo…is it all or nothing then? As in, I can remove for all or keep it for all, but not keep it for posts but remove it for pages?

    Thread Starter fechto

    (@fechto)

    OK, I figured it out. removed the offending php code from full-page-width.php, as pages are full width but posts are not, and hence they use a different php file.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Remove post meta from Pages but not from Posts’ is closed to new replies.