Title: Problem with Visual Composer content &#8211; missing space between header
Last modified: May 7, 2024

---

# Problem with Visual Composer content – missing space between header

 *  Resolved [nguyenthixuan](https://wordpress.org/support/users/nguyenthixuan/)
 * (@nguyenthixuan)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/problem-with-visual-composer-content-missing-space-between-header/)
 * 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](https://ibb.co/pJDRdkB)
 * Thank you in advance!

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [nguyenthixuan](https://wordpress.org/support/users/nguyenthixuan/)
 * (@nguyenthixuan)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/problem-with-visual-composer-content-missing-space-between-header/#post-17737175)
 * My solution is add space before open tag by using filter
 *     ```wp-block-code
       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](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [2 years, 1 month ago](https://wordpress.org/support/topic/problem-with-visual-composer-content-missing-space-between-header/#post-17738505)
 * 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](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.

 * ![](https://ps.w.org/wp-search-with-algolia/assets/icon-256x256.png?rev=2894668)
 * [WP Search with Algolia](https://wordpress.org/plugins/wp-search-with-algolia/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-search-with-algolia/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-search-with-algolia/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-search-with-algolia/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-search-with-algolia/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-search-with-algolia/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * Last activity: [2 years, 1 month ago](https://wordpress.org/support/topic/problem-with-visual-composer-content-missing-space-between-header/#post-17738505)
 * Status: resolved