Get WPFTS Pro today with 25% discount!

[Solved] The files excerpt is not visible in Scientia Theme


  • The one small conflict we detected today with the relatively new Scientia Theme.

    This theme is great, but unfortunately it does not show file content excerpts in search results with WPFTS Pro which rather greatly reduces the user experience of the site.

    Fortunately, this is quite easy to fix. The reason is that the authors of this theme (Scientia Theme) decided to override the standard excerpt generation function, and it is the standard the_excerpt hook that our plugin intercepts to output clever quotes.

    Let's create our own function, which will declare itself a little earlier and prevent the theme from creating its own.

    Our function is very simple and looks like this

    if ( ! function_exists( 'scientia_excerpt' ) ) {
    	function scientia_excerpt( $str, $maxlength, $add = '…' ) {
    		ob_start();
    		the_excerpt();
    		return ob_get_clean();
    	}
    }
    

    This solution has been tested with Scientia Theme v1.0.2.

    Of course, you don't need to go into the code now and paste it in. You can just download our add-on, where this code is already there.

    WPFTS Addon for Scientia Theme

Suggested Topics

  • 0 Votes
    5 Posts
    658 Views
    G

    @EpsilonAdmin Thanks for quick response and question.
    Yes, my hope was to use the standard WP search widget - but I haven't explored any other option. If there's a better way I'm happy to get guidance 😀

    My site has been recently re-created in WordPress after quite a few years of running under Joomla and that Joomla installation had a free plugin called jiFiles (?) which did the document scanning/indexing. A standard search, scoped on file name or a string from within file content, would pull up a list of file names each hyperlinked to the file itself to easily click on for in-browser viewing (or possibly downloading).

    I appreciate that there are other WordPress plugins that offer a full document management system but they have a much larger feature set than I need and are also majorly expensive for a small non-profit community web site.

  • 0 Votes
    1 Posts
    501 Views
    No one has replied
  • Searching data attached to image files

    Recipes and Known Solutions
    2
    1 Votes
    2 Posts
    1k Views
    EpsilonAdminE

    You can upload images to the WP Media Library as well and add the image description to the image. WPFTS Pro can search these images by the description then.

    Alternatively, you can create a special post type and upload images as "Featured Image" to each of these posts, and put the description and special information to the post_content or additional meta field(s) - depending on the number of data fields and type of information.

    In both cases, WPFTS Pro will help you with the search.

  • 0 Votes
    4 Posts
    1k Views
    EpsilonAdminE

    In the Divi 4.9.10 the respective line number to patch is 1913.

  • 0 Votes
    2 Posts
    2k Views
    EpsilonAdminE

    There is a simpler way for fix the Avada Theme search results issue in case you're using Avada Theme 7.0+.

    In this version the authors enabled to override the output of search results by the hook. So using the simple addon become possible.

    Just download it and install. And enjoy the Smart Excerpts 🙂

    wpfts-addon-avada-theme.zip

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