• Resolved dgdevil

    (@dgdevil)


    sorry to ask an oft-asked question, but I have read all the previous posts on the subject, and deleted a bunch of text from CSS (comments.php, archives.php etc), but still can’t make it work. I guess I need to run “Display: none” somewhere, but not sure where. I am running zeeBizzCard, by ThemeZee. Here is the comments.php code, which may or may not be relevant. My site.

    <?php 
    
    	if ( post_password_required()) { ?>
    		<p><?php _e('Enter password to view comments.', 'themezee_lang'); ?></p>
    	<?php return; } ?>
    
    <!-- You can start editing here. -->
    
    <?php if ( have_comments() ) : ?>
    
    <div id="comments">
    	<h3><?php comments_number(__('No comments', 'themezee_lang'),__('One comment','themezee_lang'),__('% comments','themezee_lang') );?></h3>
    
    	<?php if ( get_comment_pages_count() > 1 ) : ?>
    	<div class="comment_navi">
    		<div class="alignleft"><?php previous_comments_link() ?></div>
    		<div class="alignright"><?php next_comments_link() ?></div>
    	</div>
    	<div class="clear"></div>
    	<?php endif; ?>
    
    	<ol class="commentlist">
    	<?php wp_list_comments( array('avatar_size' => 56)); ?>
    
    	<div class="comment_navi">
    		<div class="alignleft"><?php previous_comments_link() ?></div>
    		<div class="alignright"><?php next_comments_link() ?></div>
    	</div>
    	<div class="clear"></div>
    </div>
     <?php else : ?>
    
    	<?php if ( ! comments_open() and !is_page() ) : ?>
    		<p class="nocomments"><?php _e('Comments are closed.', 'themezee_lang'); ?></p>
    	<?php endif; ?>
    <?php endif; ?>
    
    <?php if ( comments_open() ) : ?>
    	<?php comment_form(array('comment_notes_after' => '')); ?>
    	<div class="clear"></div>
    <?php endif; ?>

Viewing 4 replies - 1 through 4 (of 4 total)
  • Not sure what exactly you want to do, you want to remove anything to do with comments?

    If so, this is how I usually do it (keep in mind that I’m a WordPress beginner, might not be the best way to do this) – I just leave the comments.php completely blank. Make sure you do it in a child theme thought.

    As for removing date, its usually one <php> code line in posts.php or single.php, something like that. If I don’t know which exact line it is what I usually do (again, I’m a begginer, might be the wrong way to do it) is make a backup copy of the file and then just try removing some lines, until I get there. If something goes wrong just copy the backup code in and you are back to default.

    try to add this to the bottom of style.css:

    .postmeta { display: none; }

    clear the browser cache after the changes to style.css.

    check that this does not hide more than you expected.

    if this does not work, consider posting in the direct support section of the theme:
    http://wordpress.org/support/theme/zeebizzcard

    Thread Starter dgdevil

    (@dgdevil)

    Thank you, Alchymyth. That was scarily easy.

    Do you literally just type:

    .postmeta { display: none; }

    at the bottom of the css bit? or does it need to be in some curly brackets somewhere? Yes… I am a bit of a noob at this!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Removing "date" "comments off" from posts’ is closed to new replies.