I have this in my functions.php:
The images inside the slider were added as custom post types called "Page Content." I'm not sure if the filter only applies to the main Posts.
/**
* Remove paragraph tags around content and excerpt
*/
remove_filter( 'the_content', 'wpautop' );
remove_filter( 'the_excerpt', 'wpautop' );
The the posts in the admin look like this:
But something still wrapping the images of my Nivo Slider with p tags:
CSS:
#slider-wrapper {
float: left;
height: 560px;
}
#slider {
float: left;
border: 1px solid #DDD;
position:relative;
background:url(images/loading.gif) no-repeat 50% 50%;
}
#slider img {
top: 0px;
left: 0px;
display: none;
float: left;
position: absolute;
width: 958px;
height: 458px;
}
.nivo-controlNav {
margin: 490px auto 0;
overflow: hidden;
}
.nivo-controlNav a {
background: url(images/bullets.png) no-repeat;
border: 0;
float: left;
text-indent: -9999px;
width: 22px;
height: 22px;
}
.nivo-controlNav a.active {
background-position: 0 -22px;
}
.nivo-directionNav a {
display: block;
width: 70px;
height: 70px;
background: url(images/arrows.png) no-repeat;
text-indent: -9999px;
border: 0;
}
a.nivo-nextNav {
background-position: -70px 0;
right: -20px;
}
a.nivo-prevNav {
left: -20px;
}
.nivo-caption {
text-shadow:none;
font-family: Helvetica, Arial, sans-serif;
}
.nivo-caption a {
color:#efe9d1;
text-decoration:underline;
}
Any suggestions to remove the p tags?