• I want to remove the author name on each and every post on my site. I’ve played around a lot and tried lots of different CSS in my child theme, and can’t figure anything out. Any ideas?
    thehealthycollective.com

    thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • What parent theme are you using? Where did you download it from?

    Without knowing what theme you are using, I can only guess that it would be: .author {display:none}

    Thread Starter Hilary Curtiss

    (@hilarykenmare)

    Thank you. That did not work though. I am using liquorice theme and have already posted this question in that forum 2 months ago but no one replied, so I am trying here.

    Just Installed liquorice theme on my site to check it out.
    …a while later..
    Create a file in your child theme called single.php

    <?php
    
      /**
      *@desc A single blog post See page.php is for a page layout.
      */
    
      get_header();
    
      if (have_posts()) : while (have_posts()) : the_post();
      ?>
    
        <div id="post-<?php the_ID(); ?>"  <?php post_class('postWrapper'); ?>>
    
          <h1 class="postTitle"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h1>
          <p class="date"><small><?php the_date(); ?></small></p>
    
          <div class="post">
    	  <?php the_post_thumbnail(); ?>
    	<?php the_content(__('(more...)')); ?></div>
    	<?php wp_link_pages('before=<p class="page-link">&after=</p>&next_or_number=number&pagelink=page %'); ?>
    	  <p class="postMeta">Category <?php the_category(', ') ?> | Tags: <?php the_tags(', '); ?> </p>
          <hr class="noCss" />
    
        </div>
        <div class="post-link">
         <div class="pagination-newer"><?php previous_post_link('%link'); ?></div>
          <div class="pagination-older"><?php next_post_link('%link'); ?></div>
    	</div>
    	<?php
    
      comments_template();
    
      endwhile; else: ?>
    
    		<p>Sorry, no posts matched your criteria.</p>
    
    <?php
      endif;
    
      get_footer();
    
    ?>

    Put that in there and save. Hope it works.

    I just took by <?php the_author(); ?> out of <p class="date"><small><?php the_date(); ?> by <?php the_author(); ?></small></p>

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘removing author’ is closed to new replies.