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

    Hi there!
    We’ve already got a solution for this issue by editing line 408 in functions-enfold.php:
    https://kriesi.at/support/topic/ajax-search-html-tag-in-excerpt/
    In order to prepare Enfold for an easy udating it would be better to use an add_filter solution. Ismael has already proposed one in post #335930, but it doesn’t work.
    Do you have an idea?
    Thanks
    Bernd

    #1305528

    Hey profil77,

    Thank you for the inquiry.

    The filter in the previous thread should allow br tags in the excerpt. If you want to allow both versions of the br tags, the one that is self-closing and the other version, try to replace the filter with this one.

    https://pastebin.com/UthjCMmX

    If this is not working, please provide the link to the search results page so that we can check it further.

    Best regards,
    Ismael

    #1310094

    Hi Ismael.
    Thanks and sorry for the late reply.
    As soon as we use the filter, the excerpt content disappears completely from the ajax search results. Maybe you can rebuilt this issue?
    Best regards
    Bernd

    #1310673

    Hello Bernd!

    Thank you for the update.

    The filter should have not removed the excerpt completely. Did you remove or disable the previous filter before adding this one? Please post the site details in the private field including an admin account so that we could check the issue properly.

    Best regards,
    Ismael

    #1310703

    Hi Ismael! Ok, you can try it by using the following site details.
    Best regards
    Bernd

    #1310815

    Hi,

    Thank you for the info.

    It seems to be working just fine. The excerpt still displays in the search result page with the br tags intact. Please check the screenshot below.

    Screenshot: https://imgur.com/iwMRl1M

    Best regards,
    Ismael

    #1310886

    Hi Ismael.
    Oh, this is a misunderstanding. We mean the search results in the live preview of the Ajax search. Sorry for not being clear enough.
    Best regards
    Bernd

    #1311354

    Hi,

    It works fine in the AJAX preview as well. Please check the screenshot below.

    Screenshot: https://postimg.cc/fJ9bVQgz

    Best regards,
    Ismael

    #1311393

    That’s right, Ismael. This is the condition as we described it in post #1310703. It’s the state due to the correction of functions-enfold.php. As soon as we use the filter instead, the excerpt is no longer displayed.
    Best regards
    Bernd

    #1311742

    Hi,

    Thank you for the info.

    We have found a minor syntax error in the filter, so we adjusted it. We also reverted the changes in the functions-enfold.php file. It should be working properly now.

    Best regards,
    Ismael

    #1312173

    Hi Ismael.
    Sorry, it doesn’t work yet. We can see the the reverted changes in functions-enfold.php, but we can’t find the filter.
    Best regards
    Bernd

    #1312945

    Hi,

    Sorry about that. We had to modify the functions-enfold.php file and add the $post as one of the parameters of the avf_ajax_search_excerpt filter to make the original or unmodified excerpt available.

    $excerpt =  apply_filters( 'avf_ajax_search_excerpt', avia_backend_truncate($post->post_excerpt,70," ","...", true, '', true), $post );
    

    The filter or the function avf_ajax_search_excerpt_allow is now working as it should. We will forward the issue to our channel.

    Best regards,
    Ismael

    #1312976

    Thanks Isamael, great, it’s working fine now.
    We can expect the problem to be fixed with the next update?
    Best regards,
    Bernd

    #1313545

    Hi,

    Yes, the new parameter will be included in the next patch. Please feel free to open another thread if you have more questions. We will close the thread for now.

    Have a nice day. And thank you for your patience.

    Best regards,
    Ismael

Viewing 14 posts - 1 through 14 (of 14 total)
  • The topic ‘HTML-Tag in Excerpt’ is closed to new replies.