Get WPFTS Pro today with 25% discount!

[Solved] Divi theme Smart Excerpts when using Builder template

  • 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:


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

    Have fun!

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


  • 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: