Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.
If the asker does not get an answer then they have 10 days to request a refund.
$8
Remove post meta
I'm looking for a CSS code (or plugin), witch hides the meta information on a page below the title.
For example here:
http://motoco.me/contact/
Hide this text: by MISCHA SCHAUB on Nov 23, 2011 • 12:55 • Edit entry
I could hide the the black writen text with this CSS code:
.entry .post-meta span, .entry .post-meta a {color: #000; text-decoration: none; font-family: Helvetica, Arial, sans-serif; font-style: normal;
display: none;
}but then there is still: by and on there!
Also I would prefer to hide the post meta only on pages and not on articles, if possible.
Does anyone has a solution?
Thanks a lot!
This question has been answered.
Simone Fuchs | 05/19/12 at 7:22am
Edit
Previous versions of this question:
05/19/12 at 7:28am
(2) Possible Answers Submitted...
See a chronological view of answers?
Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.
-

Last edited:
05/19/12
7:30amArnav Joy says:it is not good to hide to this using css , can you share page.php
- 05/19/12 7:51am
Simone Fuchs says:<?php get_header(); ?>
<?php if ( have_posts() ) : ?>
<?php while ( have_posts() ) : the_post(); ?>
<div class="entry">
<div <?php post_class('single clear'); ?> id="post_<?php the_ID(); ?>">
<div class="post-meta">
<h1><?php the_title(); ?></h1>
by <span class="post-author"><a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>" title="Posts by <?php the_author(); ?>"><?php the_author(); ?></a></span> on <span
class="post-date"><?php the_time(__('M j, Y')) ?></span> • <span><?php the_time() ?></span> <?php edit_post_link( __( 'Edit entry'), '• '); ?>
<?php if ( comments_open() ) : ?>
<a href="#comments" class="post-comms"><?php comments_number(__('No Comments'), __('1 Comment'), __('% Comments'), '', __('Comments Closed') ); ?></a>
<?php endif; ?>
</div>
<div class="post-content"><?php the_content(); ?></div>
<div class="post-footer"><?php the_tags(__('Tags: '), ', '); ?></div>
</div>
</div>
<?php endwhile; ?>
<?php endif; ?>
<?php comments_template(); ?>
<?php get_footer(); ?> - 05/19/12 7:53am
Arnav Joy says:try this
<?php get_header(); ?>
<?php if ( have_posts() ) : ?>
<?php while ( have_posts() ) : the_post(); ?>
<div class="entry">
<div <?php post_class('single clear'); ?> id="post_<?php the_ID(); ?>">
<div class="post-meta">
<h1><?php the_title(); ?></h1>
<?php /*?>by <span class="post-author"><a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>" title="Posts by <?php the_author(); ?>"><?php the_author(); ?></a></span> on <span class="post-date"><?php the_time(__('M j, Y')) ?></span> • <span><?php the_time() ?></span><?php */?>
<?php edit_post_link( __( 'Edit entry'), '• '); ?>
<?php if ( comments_open() ) : ?>
<a href="#comments" class="post-comms"><?php comments_number(__('No Comments'), __('1 Comment'), __('% Comments'), '', __('Comments Closed') ); ?></a>
<?php endif; ?>
</div>
<div class="post-content"><?php the_content(); ?></div>
<div class="post-footer"><?php the_tags(__('Tags: '), ', '); ?></div>
</div>
</div>
<?php endwhile; ?>
<?php endif; ?>
<?php comments_template(); ?>
<?php get_footer(); ?> - 05/19/12 7:55am
Simone Fuchs says:Great, thanks a lot, it's exactly what I was looking for!
- 05/19/12 7:56am
Arnav Joy says:you can also try this
<?php get_header(); ?>
<?php if ( have_posts() ) : ?>
<?php while ( have_posts() ) : the_post(); ?>
<div class="entry">
<div <?php post_class('single clear'); ?> id="post_<?php the_ID(); ?>">
<div class="post-meta">
<h1><?php the_title(); ?></h1>
<div style="display:none"> <!--remove this div -->
by <span class="post-author"><a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>" title="Posts by <?php the_author(); ?>"><?php the_author(); ?></a></span> on <span class="post-date"><?php the_time(__('M j, Y')) ?></span> • <span><?php the_time() ?></span>
</div> <!--remove this div -->
<?php edit_post_link( __( 'Edit entry'), '• '); ?>
<?php if ( comments_open() ) : ?>
<a href="#comments" class="post-comms"><?php comments_number(__('No Comments'), __('1 Comment'), __('% Comments'), '', __('Comments Closed') ); ?></a>
<?php endif; ?>
</div>
<div class="post-content"><?php the_content(); ?></div>
<div class="post-footer"><?php the_tags(__('Tags: '), ', '); ?></div>
</div>
</div>
<?php endwhile; ?>
<?php endif; ?>
<?php comments_template(); ?>
<?php get_footer(); ?>
- 05/19/12 7:51am
-

Last edited:
05/19/12
7:32amHardeep Singh says:You can use:
.page .post-meta {
display: none;
}
- 05/19/12 7:50am
Simone Fuchs says:I did try this already, it removes the title as well...
- 05/19/12 7:50am
This question has expired.
Simone Fuchs, Gabriel Reguly, Luis Abarca, Francisco Javier Carazo Gil voted on this question.
Current status of this question: Completed
Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.
If the asker does not get an answer then they have 10 days to request a refund.
