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

[Solved] Divi and Divi-based themes do not show correct excerpt

Scheduled Pinned Locked Moved Recipes and Known Solutions
diviexcerpttheme
3 Posts 2 Posters 1.3k 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.
  • E
    EpsilonAdmin
    last edited by EpsilonAdmin 11 Jul 2020, 19:20 11 May 2020, 23:22

    We detected that on all Divi-themed websites it's initially impossible to see Smart Excerpt at the search results page. Instead we see cutter content for pages/posts and nothing for PDF file content. Look like an image below:

    The example view of wrong search results on Divi theme

    The reason is in the search.php file of the Divi theme.

    Divi theme without correct excerpt text

    As you can see in line 54, the Divi theme (and almost all themes based on it) is using custom truncate_post( 270 ); call to "create" an excerpt. Which is completely wrong from my point of view.

    What you can do to fix this problem is to comment out this line and put correct code the_excerpt(); instead. Like this:

    Fixed piece of the code

    That will fix the problem!

    https://e-wm.org

    1 Reply Last reply Reply Quote 0
    • A
      andrew
      last edited by 11 Jul 2020, 19:35

      Hi Alexey
      I am trying to follow instructions above, but my Search.php file located in Divi/includes/builder/module/ does not have "truncate_post( 270 );" anywhere in it.
      Andrew

      1 Reply Last reply Reply Quote 0
      • E
        EpsilonAdmin
        last edited by 13 Jul 2020, 10:46

        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.

        https://e-wm.org

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

        Suggested Topics

        • E

          [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 7 Nov 2020, 17:57
          7 Nov 2020, 17:57
          0 Votes
          1 Posts
          801 Views
          No one has replied
        • E

          [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 24 Sept 2020, 01:27
          24 Sept 2020, 01:27
          0 Votes
          1 Posts
          618 Views
          No one has replied
        • E

          [Solved] The plugin shows wrong results for search with BeTheme template

          Watching Ignoring Scheduled Pinned Locked Moved Recipes and Known Solutions betheme theme
          1 4 Sept 2020, 21:07
          4 Sept 2020, 21:07
          0 Votes
          1 Posts
          790 Views
          No one has replied
        • E

          [Solved] How to index new posts which was added by the script?

          Watching Ignoring Scheduled Pinned Locked Moved Recipes and Known Solutions reindex script search
          1 9 Jul 2020, 21:40
          9 Jul 2020, 21:40
          0 Votes
          1 Posts
          729 Views
          No one has replied
        • E

          [Solved] Incompatibility with Flatbase theme

          Watching Ignoring Scheduled Pinned Locked Moved Recipes and Known Solutions flatbase excerpt theme
          1 2 Dec 2019, 10:44
          2 Dec 2019, 10:44
          0 Votes
          1 Posts
          700 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