• Resolved chickster25

    (@chickster25)


    Hi,
    I am building a training document portal and am using the search facility to help students find the correct training document.

    The search results are showing the date of the WP page in bold. The published date of the WP page is not important to the students (and is actually confusing them), so is there a way to omit the date from showing?

    I only want to show the search results as a list of relevant documents/pages?

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Vinod Dalvi

    (@vinod-dalvi)

    I hope you are well today and thank you for your question.

    The search results page is displayed by the search.php file of the theme that you are using on your site so the plugin doesn’t control how the pages and its date will be displayed on the search results page but your site theme controls it.

    You can change this developing custom code in the search.php file of your child theme by contacting the theme author or consider hiring a developer to develop it for you. You can hire a developer from any freelance site or WordPress agency.

    Alternatively, we can just hide the date by developing custom CSS code if you share your website search results page URL.

    Best regards,

    Thread Starter chickster25

    (@chickster25)

    Hi,
    Thank you for he update. My site is currently only offline, but if you are able to provide some custom css to exclude the date, this is the URL of the search results:

    https://localhost/DOMAIN/?s=ticket&id=692

    and this is an extract of the search result….

    <main id="main" class="site-main col-md-9">
    <div class="blog-content">
    		            
    <header class="page-header">
    <h1 class="page-title">Search Results for: <span>ticket</span></h1>
    </header><!-- .page-header -->
    
    			            
    <article id="post-1560" class="post-1560 page type-page status-publish has-post-thumbnail hentry">
    
    <div class="post-featured-image">
    <a href="https://localhost/DOMAIN/ticket-cancellation/">
    <img width="300" height="168" src="https://localhost/DOMAIN/wp-content/uploads/2019/04/board.jpg" alt="" /></a>
    </div>
    
    <div class="entry-content">
    <header class="entry-header">
    
    <div class="entry-date">10                <i>May</i></div>
    
    <div class="entry-contain"><h2 class="entry-title"><a href="https://localhost/DOMAIN/ticket-cancellation/" rel="bookmark">Ticket Cancellation</a></h2></div>
    • This reply was modified 5 years, 10 months ago by Jan Dembowski. Reason: Fixed formatting
    Plugin Author Vinod Dalvi

    (@vinod-dalvi)

    You can try adding the below CSS code in the Custom CSS option of Ivory Search plugin settings on the path Ivory Search -> Settings -> Setting

    .search-results .entry-date {
    display: none;
    }
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Remove Date from Search results’ is closed to new replies.