• 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 theme Smart Excerpts when using Builder template

Scheduled Pinned Locked Moved Recipes and Known Solutions
divi
4 Posts 1 Posters 1.3k Views 1 Watching
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 Offline
    EpsilonAdmin
    last edited by EpsilonAdmin 9 Apr 2020, 22:58 5 Jun 2020, 03:13

    When you are using Divi Builder template to construct Search Results page, it may be hard to get Smart Excerpts visible for PDF files. It's because Divi developers remade standard excerpting functionality by simple cutting.

    Well, you can fix it with small patch.

    Just open the file Divi/includes/builder/module/Blog.php and search for line 1814 (approx). You can find the line of code with "truncate_post()" inside. Comment out this line and add the new line below as specified on the screenshot:

    E20200605-081057-001[1].png

    P.S. Different Divi versions may have different line numbers etc.

    Have fun!

    https://e-wm.org

    1 Reply Last reply Reply Quote 0
    • E Offline
      EpsilonAdmin
      last edited by 1 Sept 2020, 12:59

      In the newer versions of Divi, the line number should be 1881. Other things as before.

      E20200901-164836-001[1].png

      https://e-wm.org

      1 Reply Last reply Reply Quote 0
      • E Offline
        EpsilonAdmin
        last edited by EpsilonAdmin 30 Sept 2020, 19:49

        In the old Divi versions (e.g. 2.39.2) you need to edit the index.php file instead.

        1. Open the index.php file in the root of the Divi theme
        2. Locate line 54 (or another line around)
        3. Replace truncate_post (270); by the_excerpt();
        4. Save the changed file.

        Look the screenshot:

        E20201001-004001-001[1].png

        https://e-wm.org

        1 Reply Last reply Reply Quote 0
        • E Offline
          EpsilonAdmin
          last edited by 28 Jul 2021, 19:26

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

          https://e-wm.org

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

          Suggested Topics

          • E

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

            Watching Ignoring Scheduled Pinned Locked Moved Recipes and Known Solutions
            1 7 Oct 2022, 15:15
            7 Oct 2022, 15:15
            0 Votes
            1 Posts
            476 Views
            No one has replied
          • E

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

            Watching Ignoring Scheduled Pinned Locked Moved Recipes and Known Solutions
            1 25 Aug 2021, 07:58
            25 Aug 2021, 07:58
            0 Votes
            1 Posts
            962 Views
            No one has replied
          • E

            [Solved] Exclude some PDF from results when using Download Monitor

            Watching Ignoring Scheduled Pinned Locked Moved Recipes and Known Solutions
            1 8 Jul 2021, 11:35
            8 Jul 2021, 11:35
            0 Votes
            1 Posts
            740 Views
            No one has replied
          • 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
            830 Views
            No one has replied
          • E

            [Solved] Files not shown in TemplateToaster theme search results

            Watching Ignoring Scheduled Pinned Locked Moved Recipes and Known Solutions templatetoaster theme search
            1 23 Jul 2020, 21:17
            23 Jul 2020, 21:17
            0 Votes
            1 Posts
            699 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