Hello
We need to remove the date stamp from the search results
I’ve copied the file “loop-search.php” from /site/wp-content/themes/enfold/includes/ to /site/wp-content/themes/mw-child/
After that I’ve edited the newly copied loop-search.php file where I made some changes – I’ve removed the following part to make sure the date is not displayed for each search result:
<time class='date-container minor-meta updated' <?php avia_markup_helper(array('context' => 'entry_time')); ?>>
<?php the_time('d M Y'); ?>
</time>
But the date is still shown when I search for anything.
Please assist.
All the best.
you only want that the date stamp is invisible? not to totaly get rid of it. Sometimes this will be helpful because of ordering a blog in a grid or masonry.
So to avoid showing the date-stamp try this:
.search-results .post-meta-infos .date-container {
display: none !important;
}
Thanks for the tip, Guenni007! That worked like a charm.
All the best!
Also, we’ve decided to move the trailing slash (/) after the date-stamp as well, so the CSS would look like this:
.search-results .post-meta-infos .date-container {
display: none !important;
}
.search-results .post-meta-infos .text-sep {
display: none !important;
}