Autop function - Slider doesn't show up correctly (WordPress)

Possible errors
  • The slider is there in the frontend, but it looks messed up, also it might doesn't work as it should be (the other parts of the website look the same, as they did). 
  • The slider's code can be seen on the slider. 
  • Buttons look weird, like there is another empty button under/inside them.

There are themes, which use autop functions in their content, which means that they add <p> and maybe <br> tags everywhere in the code. You can check this out by looking at the code of your slider, by right clicking on the slider, and Inspect element. If there are empty <p></p> tags in the slider's code, then it must be the case. You can try out to put the slider's shortcode between [raw][/raw] tags like this:

[raw]Here comes the Smart Slider shortcode[/raw]

because in some themes this works. If it doesn't, in most cases you can remove this from your theme by adding this code into the first line of your header.php file:

<?php remove_filter( 'the_content', 'wpautop' ); ?>

But if you would like to keep it, and the [raw][/raw] doesn't work, then you should contact your theme developers, and ask them, how can you put a shortcode into a page or post without autop formatting.