Get WPFTS Pro today with 25% discount!

  • I noticed that the Thrive Nouveau theme does not show post/page excerpts by default and, yes, it also does not show any preview of indexed and found file content.

    The reason for this is very simple: the theme does not show excerpts at all, and it is inside its template. So is it possible to fix that?

    Yes, what we actually should do is switch to the Thrive Nouveau Child theme (since we going to change theme files and we don't want these changes to be overwritten by the next theme update).

    Right after the switching, find the file content-search.php which is inside the template-parts subfolder, and then copy it to the same subfolder of the Child theme.

    Then you have to open this file into your lovely text editor and add one line of the code after line 15:

    <?php the_excerpt(); ?>
    

    So final file content should look like this:

    <?php
    /**
     * The template part for displaying results in search pages.
     *
     * Learn more: http://codex.wordpress.org/Template_Hierarchy
     *
     * @package thrive
     */
    
    ?>
    
    <div id="post-<?php the_ID(); ?>" <?php post_class(array('entry-search')); ?>>
    
    	<div class="entry-search-inner-wrap">
    		<?php the_title( sprintf( '<h1 class="h3 search-entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h1>' ); ?>
    		<?php the_excerpt(); ?> <!-- <<<=== We have just added this line! -->
    		<?php thrive_posted_on(); ?>
    	</div>
    	
    </div><!-- #post-## -->
    

    That's all. Just save the file and check - now you should to see native beautiful-looking WPFTS Pro's excerpt!

    Hope this was useful.

Suggested Topics

Be the first to read the news!

We are always improving our products, adding new functions and fixes. Subscribe now to be the first to get the updates and stay informed about our sales! We are not spammy. Seriously.

Join Us Now!

We are a professional IT-team. Many of us have been working in a Web IT field for more than 10 years. Our advanced experience of software development has been employed in the creation of the WordPress FullText Search plugin. All solutions implemented into the plugin have been used for 5 or more years in over 60 different web-projects.

We are looking forward to your comments, requests and suggestions in relation to the current plugin and future updates.

ewm-logo-450

The forum powered by NodeBB | Contributors