XStore – How to display post date in post meta data on single posts

This topic has 26 replies, 4 voices, and was last updated 2 years, 7 months ago ago by Rose Tyler

  • Avatar: Remi Manguin
    Remi Manguin
    Participant
    September 1, 2021 at 18:16

    Hello Again @Rose,

    As I want to show only the date, I’m using the CSS code :not() but it doesn’t hide the text “published by” wich seems to be not in a contanier (may be is this the thing preventing me from hiding this text). Can you help me on that ?

    Please contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    September 2, 2021 at 08:30

    Hello Remi Manguin,

    try this tweak to hide all except date

    .meta-post {
    font-size: 0;
    }
    .meta-post * {
    display: none;
    }
    .meta-post .entry-date {
    font-size: 1.14rem;
    display: block;
    }

    Your custom as below could be removed

    .meta-post :not(.entry-date) {
    visibility: hidden;
    display: none;
    }

    Regards

    Avatar: Remi Manguin
    Remi Manguin
    Participant
    September 6, 2021 at 09:29

    Sorry for it has the same result. :/

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    September 6, 2021 at 10:38

    Add “!important” – https://prnt.sc/1rdq26h

    Regards

    Avatar: Remi Manguin
    Remi Manguin
    Participant
    September 7, 2021 at 14:14

    It works ! Yes !! Thank you !

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    September 7, 2021 at 14:17

    You’re welcome!

    Regards

  • 1 2
    Viewing 26 results - 21 through 26 (of 26 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.