• Hi Greg,

    I hope you’re well.

    I would like to remove the date from both the List page and Ad details pages. I’m happy to delve into Additional CSS or the wpadverts/templates/list-item.php file, but will need to know the code or can you tell me exactly what lines to remove from list-item.php?

    On the List page it’s displayed as day/month/year. On the Ad details pages, it’s displayed as ‘Published: day/month/year (number of years ago)’. I would like the ‘Published:’ to go to.

    Can you help?

    Thanks in advance.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Greg Winiarski

    (@gwin)

    Hi,
    sure, to hide the date on the [adverts_list] you can go to wp-admin / Appearance / Customize / Additional CSS panel and add there the code below

    
    .adverts-list span.advert-date {
        visibility: hidden !important;
    }
    

    On the Ad details page, it is more complicated as there is no CSS class to hide just the date, so you would need to open the wpadverts/templates/single.php template file and remove from it the code

    
    <?php printf( __('Published: %1$s (%2$s ago)', "wpadverts"), date_i18n( get_option( 'date_format' ), get_post_time( 'U', false, $post_id ) ), human_time_diff( get_post_time( 'U', false, $post_id ), current_time('timestamp') ) ) ?>
    
    Thread Starter jonnevill

    (@jonnevill)

    Fantastic, thanks Greg I appreciate the speedy response.

    Enjoy your day!

    I need to remind that if you update the plugin in the future- all will return.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Remove the date – List page and Ad details pages’ is closed to new replies.