Skip to content
Snippets Groups Projects
Commit a0b9ebe8 authored by Anton Sarukhanov's avatar Anton Sarukhanov
Browse files

Hide comments link in post meta when there are no comments. Hide empty...

Hide comments link in post meta when there are no comments. Hide empty paragraphs (because fucking WordPress)
parent 1f588b3e
No related branches found
No related tags found
No related merge requests found
......@@ -57,4 +57,3 @@ function be_display_posts_shortcode_exclude_posts( $args, $atts ) {
return $args;
}
add_filter( 'display_posts_shortcode_args', 'be_display_posts_shortcode_exclude_posts', 10, 2 );
<?php
// Exit if accessed directly
if ( !defined( 'ABSPATH' ) ) {
exit;
}
/**
* Post Meta-Data Template-Part File
*
* @file post-meta.php
* @package Responsive
* @author Emil Uzelac
* @copyright 2003 - 2014 CyberChimps
* @license license.txt
* @version Release: 1.1.0
* @filesource wp-content/themes/responsive/post-meta.php
* @link http://codex.wordpress.org/Templates
* @since available since Release 1.0
*/
?>
<?php if ( is_single() ): ?>
<h1 class="entry-title post-title"><?php the_title(); ?></h1>
<?php else: ?>
<h2 class="entry-title post-title"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<?php endif; ?>
<div class="post-meta">
<?php responsive_post_meta_data(); ?>
<?php if ( comments_open() && get_comments_number() > 0 ) : ?>
<span class="comments-link">
<span class="mdash">&mdash;</span>
<?php comments_popup_link( __( 'No Comments &darr;', 'responsive' ), __( '1 Comment &darr;', 'responsive' ), __( '% Comments &darr;', 'responsive' ) ); ?>
</span>
<?php endif; ?>
</div><!-- end of .post-meta -->
......@@ -26,6 +26,12 @@ html {
#content-sitemap {
margin: .2em .1em;
}
.post-data {
margin-top: 0;
}
p:empty {
display: none;
}
/* stuff under my photo */
.me-sidebar{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment