Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
  • #981941


    In previous versions of Enfold I had applied the indicated change on a next post to put a shortcode in the excerpt (currency converter) and it worked fine.
    You need to modify /wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/portfolio.php – open the file and replace

    $ output. =! empty ($ excerpt)? “<div class = ‘grid-entry-excerpt entry-content'” .avia_markup_helper (array (‘context’ => ‘entry_content’, ‘echo’ => false)). “>”. $ excerpt. “</ div > “: ”;


    $ output. =! empty ($ excerpt)? “<div class = ‘grid-entry-excerpt entry-content'” .avia_markup_helper (array (‘context’ => ‘entry_content’, ‘echo’ => false)). “>”. do_shortcode ($ excerpt). ” </ div> “: ”;

    But now in the latest version of Enfold, I do not find this code to change it. What must be done now?

    Thank you Enfold


    Rikard, Ismael? Nobody can help me?


    I have the same problem


    Change line 652
    $output .= !empty($excerpt) ? “<div class=’grid-entry-excerpt entry-content’ “.avia_markup_helper(array(‘context’=>’entry_content’,’echo’=>false, ‘id’=>$the_id, ‘custom_markup’=>$custom_markup)).”>”.$excerpt.”</div>” : ”;
    $output .= !empty($excerpt) ? “<div class=’grid-entry-excerpt entry-content’ “.avia_markup_helper(array(‘context’=>’entry_content’,’echo’=>false, ‘id’=>$the_id, ‘custom_markup’=>$custom_markup)).”>”.do_shortcode($excerpt).”</div>” : ”;


    Hi manurimini,

    Great, glad you found a solution and thanks for sharing. Did you try that out @kohlidays_kohsamui?

    Best regards,


    Thanks a lot Manurimini. It’s works like a charm. Perfect. Thanks Rikard. Have both a great day.



    Great, glad you got it working. Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,


    Hello, I tryng to make the same, Need to read shortcode in the excerpt.. But I cannot find this:
    $ output. =! Empty ($ excerpt)? “<Div class = ‘grid-entry-excerpt entry-content'” .avia_markup_helper (array (‘context’ => ‘entry_content’, ‘echo’ => false, ‘id’ => $ the_id, ‘custom_markup’ => $ custom_markup)). “>”. $ excerpt. “</ div>”: “;

    Help me please


    Hi Sachasilvestri,

    You should find it in wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/portfolio/portfolio.php (line 657 in Enfold 4.5.5).
    Hope this helps.

    Best regards,


    Hi Nikko!!
    Thanks for your reply!
    unfortunately no… the shortcodes does not work in excerpts … pherhaps something wrong or maybe I did not understand how I have to do …
    I am interested in being able to put diversified excerpts for the same articles shown in more galleries and in more pages (they are pages that replace archive pages), so I need to be able to do more excerpts or to add a custom field to add content under the previews.
    For this reason, if is possible make readable the shortcodes in the excerpt, I could use it to diversify ….
    in my Portfolio.php file there is this code .. but it still doesn’t work:

    $output .= !empty($excerpt) ? “<div class=’grid-entry-excerpt entry-content’ “.avia_markup_helper(array(‘context’=>’entry_content’,’echo’=>false, ‘id’=>$the_id, ‘custom_markup’=>$custom_markup)).”>”.do_shortcode($excerpt).”</div>” : ”;
    $output .= !empty($title) || !empty($excerpt) ? “</div>” : ”;
    $output .= ‘<footer class=”entry-footer”></footer>’;
    $output .= “</article>”;
    $output .= “</div>”;
    I hope in a prompt reply


    Hi Sacha,

    Can you give a sample content you added for your excerpt? so we can have more context.

    Best regards,


    Yess sure, I whrite in private


    Sorry Nikko, or someone…
    There are no reply for this issue?



    Unfortunately no update for this yet.

    Best regards,

Viewing 14 posts - 1 through 14 (of 14 total)

You must be logged in to reply to this topic.