Hi,
I am using the “Masonry” shortcode for displaying some grids of portfolio items. Some of the items should be just text, the rest are images. I got it all sorted, BUT so far in the text boxes the excerpt is displayed and there is no way to get some HTML tags in there.
Is it either possible to use the “Preview text” here or to enable the WYSIWYG editor for the excerpt field?
Hey Riseleap,
Thank you for using Enfold.
You need to modify the config-templatebuilder > avia-shortcodes > av-helper-masonry.php file line 446 if you want the excerpt to retain the html tags.
$this->loop[$key]['content'] = strip_tags( $entry->post_excerpt );
Best regards,
Ismael
Thank you!
Hi,
Glad we could help. Please let us know if you should need any further help on the topic or if we can close it.
Best regards,
Rikard
This can be closed. I solved it like this:
$this->loop[$key]['content'] = !empty($entry->post_content) ? $entry->post_content : $entry->post_excerpt;
Thanks again.
Hi,
Glad we could help!
Please take a moment to review our theme and show your support https://themeforest.net/downloads
To know more about enfold features please check – http://kriesi.at/documentation/enfold/
Thank you for using Enfold :)
Best regards,
Basilis