[Solved] Avada theme excerpt do not show
-
IMPORTANT: If you're using Avada Theme 7.0+, please check the next message.
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 an excerpt of the attachment file when you search files by content. Also, this theme will not show the Smart Excerpts output.
Likely, the theme authors allow us to redefine the theme "content shortener" function by ours, which makes it possible to create a small fix without the need to patch the main theme files.
Please follow these steps:
-
Open your
functions.php
file of the Avada theme (or Avada child theme) -
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(); }
- 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!
-
-