Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #914219

    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?

    #914630

    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

    #914793

    Thank you!

    #915165

    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

    #915600

    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.

    #915705

    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

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Rich text excerpt in Masonry grid’ is closed to new replies.