Remove author and "posted on"

Hello,
I’d like to remove for all the articles on the front page only :

  • “by”
  • author
  • “posted on”

I would like to keep only the date itself.
Is there a special CSS to add to achieve this ?
Thank you very much for your help !
Celine

Hey there,

I hope you are well today and thank you for your question.

You can try achieving this by adding the following CSS code in the Custom CSS option of your theme on the below path.

Admin Area -> Appearance -> Customize -> Additional CSS

/*remove blog metta dater on home page only*/
.home .entry-meta {
  display:none;
}

Best regards,
Support.

Hello,
Thank you for your help ! I’ve already tried this one but I would like to keep the date. This one removes everything.
Thank you and have a great day !
Celine

Hey there,

Based on the request this is the only possible solution, anything else would require modification of the theme files

/*hide meta data*/
.home .entry-meta{
  visibility:hidden;
}
/*unhide date*/
.home time.entry-date.published{
  visibility:visible !important;;
}

Hello,
Thanks a lot, it’s working perfectly. I just have a tiny problem : the date isn’t displayed in the middle but slightly displaced in comparison with the category and title centers.
Thanks again for your help !
Celine

Could you please share me your site URL where it’s displaying so that i can help you to display it in middle?

Here it is : http://lamariniereenvoyage.com/
Probably because it is hiding the author but not removing it so the whole author+date is centered and not just the date…
Thanks so much for your help and patience !
Celine

Please try using below CSS code to centre align it.

.entry-meta span.posted-on {
    margin: 0;
}

Hi Movin,
Unfortunately, it doesn’t change anything … :frowning:

I don’t see the shared CSS code used anywhere on your site so could you please tell me where you have added it so that i can troubleshoot why it is not working for you?

Hi,
I’ve retried it so you’ll see the shared code in my css added pieces.

Thank you very much !
Celine

I saw using above shared CSS code it is not lightly centre aligned on your site so please try using below custom CSS code.


#page .entry-meta span.posted-on {
    margin: 0 0 0 16px;
}

Hi Movin and thank you for your help !
I’ve managed to do it with 51 px eventually :slight_smile: thanks so much !
Is it possible to keep the date only on all posts and not only on the front page ?
Thank you and have a great day !
Celine

Is it possible to keep the date only on all posts and not only on the front page ?

Yes just use below CSS code to achieve this.

.home time.entry-date.published {
    display: none;
}

Thank you very much for your help Movin !

You are most welcome here :slight_smile: