- This topic has 15 replies, 7 voices, and was last updated 9 years, 9 months ago by Theme Horse Support Team.
-
AuthorPosts
-
September 11, 2013 at 8:18 am #3915naturalsParticipant
Hi All,
Can anyone tell me once I’ve got rid of the author, date, category and comments footer on each post how I get rid of the vertical separation between the fields? Have a look at my website here if you need to – the bars I’m talking about are visible on the first page if you scroll down a little.Thanks in advance,
AndrewSeptember 12, 2013 at 4:47 pm #3941Rabin ShresthaParticipantHi naturals,
You can paste the CSS below in Custom CSS box
.entry-header .entry-meta { display:none; }
Rabin
September 13, 2013 at 4:36 am #3949naturalsParticipantThanks for your help Rabin, unfortunately the three separation lines are still showing. Any other ideas?
September 13, 2013 at 8:02 am #3950Rabin ShresthaParticipantSorry,
There was a slight mistake try this
.entry-meta { display:none; }
Rabin
September 13, 2013 at 2:15 pm #3962naturalsParticipantPERFECT! Thank you so much for the quick response.
September 16, 2013 at 6:46 am #3984Rabin ShresthaParticipant🙂
September 16, 2013 at 7:19 pm #3997MariaParticipantHello Rabin,
Your last code works great, but is there any way to also delete the lines above and below the “Read more” button? I’d only like to have one line separating each post on my site (http://www.readingforpleasure.net/).
Thank you!
Maria
September 17, 2013 at 6:33 am #4006Rabin ShresthaParticipantHi,
If you want to remove both line paste this CSS
.entry-meta-bar { border-bottom: medium none; border-top: medium none; }
if you want to remove only bottom line then remove the border-top css and viceversa
Rabin
September 17, 2013 at 6:57 pm #4018MariaParticipantThank you much Rabin! Looks great now!
Best,
MariaSeptember 27, 2013 at 8:09 am #4238mnrParticipantI wanted to hide just the author. And not just hide via css but remove it completely.
So I found library/structure/content-extensions.php
and I changed these lines – lines 147 and 148:<!– <span class=”by-author”><?php _e( ‘By’, ‘attitude’ ); ?> “><?php //the_author(); ?></span> |
–>
This works better for me as with the other solution the author is still visible by doing a ‘view source’, whereas this way it is completely hidden and my WP username isn’t visible to the whole world (better for security).September 30, 2013 at 7:36 am #4278Rabin ShresthaParticipantHi mnr,
It’s better approach but if you have made changes directly to the theme file, your changes will get lost when you update the theme. So hope you have followed child theme method to make code changes. For more detail have a look here http://codex.wordpress.org/Child_Themes
Rabin
October 14, 2013 at 2:37 am #4608krown24ParticipantHi! I tried adding this custom css and no luck — the author and date are still appearing in my indexed posts. Any thoughts? Thanks!
October 15, 2013 at 8:03 am #4622Rabin ShresthaParticipantHi krown24
Please check your Custom CSS properly you are missing the closing curly braces in
#site-logo {
float:left;
margin-top: 15px;Also remove this code
.entry-header .entry-meta { display:none; }
Rabin
October 16, 2013 at 1:58 am #4641krown24ParticipantAh, wonderful, thanks! Still learning so silly mistakes I see now 🙂
February 18, 2015 at 12:11 pm #22181DanielParticipantSo is there a custom css way to just hide the author – or do I also ned to edit my code?
Thx,
Dan
-
AuthorPosts
- You must be logged in to reply to this topic.