Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1236404

    Hi,
    I’d like to remove date and time from a single blogpost page.

    Secondly, I’d like to remove time and allow date to remain on my homepage.
    Your help would be very much appreciated.
    Best regards.
    Moses

    • This topic was modified 4 years, 3 months ago by mosesjohnson. Reason: Added login credentials
    #1236575

    Hey mosesjohnson,

    Please try the following in Quick CSS under Enfold->General Styling:

    .single-post time.date-container {
      display: none;
    }

    Best regards,
    Rikard

    #1236587

    Hi Rikard,
    Thanks for this.
    Could you please also assist me remove time from homepage? When I navigate to settings > general > date and time format and choose an empty custom time, I’m left with this separator: /
    Thanks for your help.

    #1236832

    Hi,

    Thanks for the update. Please try this CSS as well:

    .home time.date-container {
      display: none;
    }

    Best regards,
    Rikard

    #1236860

    Hi,
    Thanks for your help. Could you please check this CSS for me? It has removed both date and time. I just wanted to remove the time and the separator between the date and time

    • This reply was modified 4 years, 3 months ago by mosesjohnson.
    #1237217

    Hi,

    Thanks for the update. We can’t remove the time only unfortunately, since they are in the same container element. You would have to keep it as it is, or remove both the time and date.

    Best regards,
    Rikard

    #1237536
    This reply has been marked as private.
    #1238465

    Hi,

    Thank you for the update.

    Looks like the date only breaks to the second line on mobile view. We can decrease the font size to keep it on a single line.

    Please try this css code.

    @media only screen and (max-width: 1024px) {
        .date-container.minor-meta.updated {
    	font-size: 13px !important;
        }
    }
    

    You can change the date and time format in the Settings > General panel.

    // https://wordpress.org/support/article/formatting-date-and-time/

    Best regards,
    Ismael

    #1238476

    Hi
    You are right “date only breaks to the second line on mobile view”
    I’ve tried the above CSS, the time still drops to the second line. Any other solution please?
    Best regards.
    Moses

    #1238998

    Hi,

    Thank you for the update.

    The css files are currently compressed, so you have to disable the Performance > File Compression settings after adding the code. Also, please don’t forget to remove the browser cache prior to checking the page.

    Best regards,
    Ismael

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.