Download
We're evolving to serve you better! This current forum has transitioned to read-only mode. For new discussions, support, and engagement, we've moved to GitHub Discussions.

Remove post date from mercury frontpage

  • #5403
    Avatar photo[anonymous]

    Hello, I’m trying to remove the post date from the frontpage on the mercury theme. While there is a setting to remove it in the single post page I have not found any selection to remove it from the frontpage. I try to navigate in the frontpage file of the theme and remove the string related to post date but it was not working. Can you help me? Thanks

    #5411
    Avatar photo[anonymous]

    Hi @mizard,

    A quick method to hide the post date on the cards (on Frontpage as well as Tag/Author pages) by custom CSS.

    Insert the following by going to “Tools” on the app’s left menu and selecting “Custom CSS”.

    .c-card__text time {
      display: none;
    }
    #5413
    Avatar photo[anonymous]
    @shaun2k unfortunately I try without success. Do you have other suggestion?
    #5414
    Avatar photo[anonymous]

    @mizard, not sure why it’s not working for you.

    I tried the css on Mercury demo pages and it worked for all 4 different layouts (Masonry, Masonry Compact, Grid, Grid Compact).

    I attached pictures of the before and after adding the css code in the DevTools of the browser.

    Hope I am understanding your problem correctly — does the “after” picture shows what you are looking for?

    #5421
    Avatar photo[anonymous]

    @shaun2k, thank you very much, it work now. I don’t know why but before obtaining the desired result (yes, the one that you show in the picture) I had to change to another theme and then go back again to mercury. I find that this happens to me another time when I tried to use custom CSS. I don’t know if this is a problem of main or if it is a common bug. I have both publii and themes updated to the most recent version. Anyway, thank you very much for your help.