Do not show author tag in the posts byline

Support Area Forums Elite Do not show author tag in the posts byline

Viewing 2 posts - 1 through 2 (of 2 total)
URL to the page in question:
  • Author
    Posts
  • #17110
    Avatar photoJazz Lover
    Participant

    Bill, is it possible to avoid to show the author in every post? You know, I’m the only author on the website and it looks like a ” Me, Me, Me, … and once again Me” 🙂 It would be great to have an option to switch this off – further theme possible updates…

    #17116
    Bill Robbins
    Moderator

    Good question. Version 1.2 which hopefully will be out week after next will have some additional styling hooks that you can use on the “post meta” to hide or style any of the items there. You can go on and add it to your version of the theme if you’d like to. Here’s how:

    1. Go to the Appearance section in your WordPress control panel and select Edit.
    2. From the list of files on your right, choose post-meta.php
    3. Replace everything there with this:
      
      <?php
      /**
       * Displays details about our posts
       *
       * @package WordPress
       * @subpackage Elite
       * @since 1.0.0
       *
       *
       */?>
       
       <p class="post-meta">
       	<span class="post-date">
       		<?php the_time('F j, Y'); ?>
       	</span>
       	<span class="author">
       		&nbsp;&#124;&nbsp;<?php the_author_posts_link(); ?>
       	</span>
       	<?php if ( comments_open() || '0' != get_comments_number() ) : ?>
       		<span class="comment-link">
       			&nbsp;&#124;&nbsp;<a href="<?php the_permalink(); ?>#comments"><?php comments_number(__('Comment', 'organizedthemes'), __('1 Comment', 'organizedthemes'), __('% Comments', 'organizedthemes')); ?></a>
       		</span>
       	<?php endif; // comments_open() ?>
       	<span class="categories">
       		&nbsp;&#124;&nbsp;<?php the_category(', '); ?>
       	</span>
       </p>
      
    4. Save your changes. That will add in the hook we need.
    5. Next go to the Theme Options page and select the Advanced tab. Scroll down to the Custom CSS box and paste this:
      
      .post-meta span.author {
           display: none;
      }
      
    6. Update your settings.

    That should let you hide the author from the line below the title. If you have any trouble there, let me know.

    Thanks,
    Bill

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Do not show author tag in the posts byline’ is closed to new replies.