Get WPFTS Pro today with 50% discount!

[Solved] Avada theme excerpt do not show



  • There is a small incompatibility of WPFTS Pro with the popular Avada Theme. This theme is using custom excerpt processing, which does not intend to show a part of the attachment file's content. Also, this theme will not show the Smart Excerpts output.

    Likely, the theme authors allow us to redefine the theme "content shortener" function, which makes it possible to create a small fix without need to patch the main theme files.

    Please follow these steps:

    1. Open your functions.php file of the Avada theme (or Avada child theme)

    2. Put this code to the beginning of the file

    function fusion_get_post_content_excerpt( $limit = 285, $strip_html, $page_id = '' ) {
            ob_start();
            the_excerpt();
            return ob_get_clean();
    }
    
    1. Save the functions.php file.

    It should fix the issue with Smart Excerpts. Now you will see WPFTS Pro's excerpts with Google-like markup and even attachment file contents.

    Have fun!


Log in to reply