WPFTS Pro Main Site WPFTS Community Forum
    • Recent
    • Tags
    • Popular
    • Register
    • Login
    Get WPFTS Pro today with 25% discount!

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

    Scheduled Pinned Locked Moved Recipes and Known Solutions
    1 Posts 1 Posters 461 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • EpsilonAdminE
      EpsilonAdmin
      last edited by EpsilonAdmin

      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

      https://e-wm.org

      1 Reply Last reply Reply Quote 0
      • First post
        Last post

      Suggested Topics

      • EpsilonAdminE

        [Solved] Polylang limits search by language taxonomy

        Watching Ignoring Scheduled Pinned Locked Moved Recipes and Known Solutions fix patch polylang search taxonomy
        1
        0 Votes
        1 Posts
        796 Views
        No one has replied
      • EpsilonAdminE

        [Solved] Indexing and Search files by content in BuddyDrive

        Watching Ignoring Scheduled Pinned Locked Moved Recipes and Known Solutions buddydrive file search
        1
        0 Votes
        1 Posts
        754 Views
        No one has replied
      • EpsilonAdminE

        [Solved] No excerpts shown in search results in Storefront theme

        Watching Ignoring Scheduled Pinned Locked Moved Recipes and Known Solutions storefront theme excerpt fix
        1
        0 Votes
        1 Posts
        826 Views
        No one has replied
      • EpsilonAdminE

        How to search file by content when using PDFViewer plugin

        Watching Ignoring Scheduled Pinned Locked Moved Recipes and Known Solutions embedded pdf embedpdf pdfviewer search pdf
        1
        0 Votes
        1 Posts
        714 Views
        No one has replied
      • EpsilonAdminE

        [Solved] Does not show Smart Excerpt with Total Theme

        Watching Ignoring Scheduled Pinned Locked Moved Recipes and Known Solutions smart excerpt total theme theme
        1
        0 Votes
        1 Posts
        640 Views
        No one has replied

      Additional Resources

      • My Account
      • Buy WPFTS Pro
      • Community Forum
      • Affiliate Program
      • Privacy Policy
      • Terms & Conditions
      • Contact Us
      • Coupon Partner

      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