Skip to main content

Post Carousel Blank Slides

Follow these steps if your Post Carousel slides are blank.

Post Carousel Module Slides

The code for the Post Carousel Module looks like this.

<div> <div></div> <div></div> </div>

The Problem: WordPress Adds <P> Tag

From time to time a WordPress website will automatically add <p> tags to the page which breaks the carousel. The following code is an example.

<div> <div></div> <p></p> <div></div> </div>

The Solution: Add PHP

To fix this problem, add the following code to the functions.php file of your child theme.

remove_filter('the_content', 'wpautop');