Hide Author and Date?

Support Area Forums Epic Hide Author and Date?

Tagged: 

Viewing 9 posts - 1 through 9 (of 9 total)
URL to the page in question:
  • Author
    Posts
  • #6788
    Rodney Knous
    Participant

    How do you hide the post author and date for a specific or all posts in this theme?

    #6792
    Bill Robbins
    Moderator

    Rodney,

    Thank you for your business first of all. Here’s how to remove the author/date from all posts:

    1. Go to the theme options page and select the styling tab.
    2. At the top, choose “yes” to include custom styling.
    3. Scroll down to the bottom and you’ll see a box labeled “Custom CSS.”
    4. Paste this into that box:
      
      .archive p.post-meta,
      .single p.post-meta {
      	display: none;
      }
      
    5. Update your settings.

    That will hide them on all posts. If you want to hide them only on a specific post you can do that. We’re going to build on the instructions above. Here’s what else you’ll need to do.

    1. Edit the post you’d where you’d like to hide those.
    2. While you’re editing the post, look at the URL in your browser’s navigation bar.
    3. In the URL you’ll see near the end it say something similar to ?post=3492
    4. Remember the number
    5. Now go to the “Custom CSS” box and use this code:
      
      .postid-3492 p.post-meta {
      	display: none;
      }
      
    6. Replace the 3492 with the number from the post you were editing.
    7. Update your settings.

    That will hide the author, date and category from just that post. The disadvantage here is you will have to do that for each individual post you’d like to hide it on.

    If you have any questions or trouble, let me know,
    Bill

    #6795
    Rodney Knous
    Participant

    Worked great! Thanks for the quick response as always!

    #6796
    Bill Robbins
    Moderator

    Awesome! Let me know if you need anything else.

    #6904
    Shannon Blosser
    Participant

    Hi Bill!

    I’m just getting started with Epic and was wondering if it’s possible to leave the date but get rid of the categories and author on posts.

    Thanks for any help!
    Shannon

    #6905
    Bill Robbins
    Moderator

    Shannon,

    You can completely do that. Here’s how:

    1. Go to the appearance section and select edit to open up the theme editor.
    2. From the list of files on your right, choose single.php and look for this spot:
      
      <p class="post-meta"><?php the_time('F j, Y'); ?> / <?php the_author_posts_link(); ?> / <?php the_category(', '); ?></p>
      
    3. Delete everything but:
      
      <p class="post-meta"><?php the_time('F j, Y'); ?></p>
      
    4. Save your changes.
    5. Repeat that for the archive.php file too.

    That should leave the date, but take out the rest. If you have any trouble or questions let me know.

    Take care,
    Bill

    #6906
    Shannon Blosser
    Participant

    Perfect! Thank you so much!

    Shannon

    #7200
    Sharon Vaingast
    Participant

    Hello Bill,
    I followed your instructions here and I still see unnecessary information under the following gallery page:
    http://hassuka.co.il/%D7%92%D7%9C%D7%A8%D7%99%D7%99%D7%94/

    I would like to leavce the date only.

    Please advice,
    Sharon

    #7207
    Bill Robbins
    Moderator

    Sharon,

    To edit the archive page, you’ll also need to make that change to archive.php in addition to the single.php file.

    If you have trouble, let me know,
    Bill

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Hide Author and Date?’ is closed to new replies.