• Resolved lcool3

    (@lcool3)


    Hello,

    I realised that in order to remove post dates I need the premium generate press theme.

    I am thinking about buying at a later date but not yet. Do you know of a free way I can remove posts dates that won’t slow my site down that doesn’t involve purchasing Generate press premium?

    Thanks for your time.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Go to Customize / Additional CSS and insert this code

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

    You don’t have to purchase premium to customize your Theme. Fortunately, you can get a lot done using CSS and PHP. The simplest way would be to hide the Metadata in CSS.

    In > Customise > Additonal Settings add

    .entry-meta {display:none;}

    You can also add this snippet using the Simple CSS plugin.

    Theme Author Tom

    (@edge22)

    If you want to remove the post date from the HTML completely instead of hiding it with CSS, you can do this:

    add_filter( 'generate_post_date', '__return_false' );

    Adding PHP: https://docs.generatepress.com/article/adding-php/

    Tom,

    That filter works well for desktop but still appears on mobile.

    Is there a fix for that?

    Disregard…for some reason (even after clearing history etc…) it still appeared. But after making a couple of changes to the theme’s colors it worked.

    Thanks,
    slappy

    Theme Author Tom

    (@edge22)

    Glad you got it working 🙂

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘How to remove post dates from view’ is closed to new replies.