Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #373237
    #373263

    Hi kristenangel!

    Add this to your custom CSS.

    .search .post-meta-infos time, .search .post-meta-infos .text-sep {
        display: none;
    }

    As for changing the events date open up /includes/loop-search.php and on line 40 you should see this.

    <?php the_time('d M Y'); ?>
    

    Change it to this.

    <?php if ( tribe_is_event() ) { echo tribe_get_start_date ( null, true, '' ); } else { the_time('d M Y'); } ?>
    

    Cheers!
    Elliott

    #373267

    Thanks, Elliott. For the first point – hiding the timestamp on results – we are actually looking to hide the timestamp only on Pages, but still have them display for Posts. So my blog entry will be dated, but the publish date on a page like “About” won’t show the meta. Is this possible?

    #373351

    Hi!

    Use this instead then.

    .page time { display: none !important; }
    

    Regards,
    Elliott

    #373353

    Perfect. Thank you!

    — UPDATE Jan 7, 2015 – Just noticing that this css fixed the issue on the search results page, but removed the timestamp on every other page using the Blog Posts tool. How do I apply this code to the search results page only? Tried the following with no luck:

    .template-search .page time { display: none !important; }

    • This reply was modified 9 years, 1 month ago by kristenangel.
Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Fine-tuning the search results’ is closed to new replies.