Get WPFTS Pro today with 25% discount!

[Solved] The Astra theme does not show Smart Excerpt for files


  • Some users reported to me that they do not see Smart Excerpts in the search results. They are using Astra Theme. Basic Search Result looks like this:

    E20210825-124627-001[1].png

    As you can see, there are only links to PDF files instead of Smart Excerpt. Additionally, for normal posts, we can see a piece of content without any highlighting, and also shortcodes are not rendered.

    Fortunately, it's very simple to fix.

    You need to go to Appearance -> Customize -> Blog -> Blog / Archive and find the button that switches "Post Content" between "Full Content" and "Excerpt". You need to switch it to "Excerpt" and Publish changes.

    E20210825-125513-001[1].png

    This should help and search results become look like this:

    E20210825-125835-001[1].png

    Much better, right?

Suggested Topics

  • Searching data attached to image files

    Recipes and Known Solutions
    2
    1 Votes
    2 Posts
    990 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.

  • PDF Search Results: Titles and Excerpts

    Recipes and Known Solutions
    12
    0 Votes
    12 Posts
    2k Views
    EpsilonAdminE

    Great, thanks!

  • 0 Votes
    3 Posts
    802 Views
    EpsilonAdminE

    Yes, you can do that. But it will need some coding.

    First of all, we need to extract a PDF link or file path from the post. It should be done at indexing stage, inside the 'wpfts_index_post' hook function.

    After the link/path extraction, we should read this file and extract the text information from it. It still should be done inside the same hook.

    Okay, when we have the text, we put it to one of the index clusters (your preference) and let it to the indexer to make its job as well.

    The final code will depend from the way how you have attached the PDF file to the parent post. It can be done using very different ways.

    Please give me some more explanation of this and I will post the semi-ready code here.

  • 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

  • 0 Votes
    3 Posts
    1k Views
    EpsilonAdminE

    Hi Andrew
    Please could you send me your search.php file to the epsiloncool@gmail.com or attach it here. Should be Divi has changed the structure of the file and we need another patch now.

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