• Resolved nguyenthixuan

    (@nguyenthixuan)


    Hi,
    I have some pages using Visual Composer for content. When it’s indexed to algolia, they missing space between heading title and paragraphs so it’s affect to search result, please see my screenshot, can you please advice me how to fix it?

    https://ibb.co/pJDRdkB

    Thank you in advance!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter nguyenthixuan

    (@nguyenthixuan)

    My solution is add space before open tag by using filter

    add_filter('algolia_searchable_post_content', 'cwy_fix_no_spacing_vc_content', 30 ,1);
    function cwy_fix_no_spacing_vc_content( $post_content){
        $content = str_replace('<', ' <', $post_content);
        return $content;
    }
    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    I suspect this is very much like the issue solved with table content, which you can see the solution for at https://github.com/WebDevStudios/wp-search-with-algolia/pull/400/files

    If you can provide some example post content where you’re getting the original issue, we can do some testing to see if we can fix ahead of time. Could also provide some extra edge cases we haven’t even thought of yet or identified.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Problem with Visual Composer content – missing space between header’ is closed to new replies.