Hide Author and Date?
Support Area › Forums › Epic › Hide Author and Date?
Tagged: Formatting
- This topic has 8 replies, 4 voices, and was last updated 13 years, 12 months ago by
Bill Robbins.
-
AuthorPosts
-
July 17, 2012 at 17:30 #6788
Rodney Knous
ParticipantHow do you hide the post author and date for a specific or all posts in this theme?
July 18, 2012 at 08:36 #6792Bill Robbins
ParticipantRodney,
Thank you for your business first of all. Here’s how to remove the author/date from all posts:
- Go to the theme options page and select the styling tab.
- At the top, choose “yes” to include custom styling.
- Scroll down to the bottom and you’ll see a box labeled “Custom CSS.”
- Paste this into that box:
.archive p.post-meta, .single p.post-meta { display: none; } - 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.
- Edit the post you’d where you’d like to hide those.
- While you’re editing the post, look at the URL in your browser’s navigation bar.
- In the URL you’ll see near the end it say something similar to
?post=3492 - Remember the number
- Now go to the “Custom CSS” box and use this code:
.postid-3492 p.post-meta { display: none; } - Replace the 3492 with the number from the post you were editing.
- 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,
BillJuly 18, 2012 at 09:59 #6795Rodney Knous
ParticipantWorked great! Thanks for the quick response as always!
July 18, 2012 at 10:07 #6796Bill Robbins
ParticipantAwesome! Let me know if you need anything else.
July 26, 2012 at 17:15 #6904Shannon Blosser
ParticipantHi 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!
ShannonJuly 26, 2012 at 17:31 #6905Bill Robbins
ParticipantShannon,
You can completely do that. Here’s how:
- Go to the appearance section and select edit to open up the theme editor.
- 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> - Delete everything but:
<p class="post-meta"><?php the_time('F j, Y'); ?></p> - Save your changes.
- 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,
BillJuly 26, 2012 at 17:48 #6906Shannon Blosser
ParticipantPerfect! Thank you so much!
Shannon
August 22, 2012 at 07:17 #7200Sharon Vaingast
ParticipantHello 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,
SharonAugust 22, 2012 at 09:17 #7207Bill Robbins
ParticipantSharon,
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 -
AuthorPosts
- The topic ‘Hide Author and Date?’ is closed to new replies.
