Remove an wpautop from plugin

Hey guys,

I’m having such a hard time figuring out how to remove a simple wpautop function without breaking the plugin. I’ve tried simply adding the normal remove_filter string to the plugin, but it doesn’t work:

[php]<?php

remove_filter( ‘the_content’, ‘wpautop’ );
remove_filter( ‘the_excerpt’, ‘wpautop’ );

?>[/php]

I also tried using this plugin, but again it doesn’t do anything to help: https://wordpress.org/plugins/disable-wpautop/

I think this is what I need to change, but I don’t know how to change it without breaking the plugin:

[php]
<?php if(!$gravity_engine->isFullWidthContent($i)):?>




<?php echo wpautop(do_shortcode($gravity_engine->getContent($i)));?>



<?php endif;?>
			<?php if($gravity_engine->isFullWidthContent($i)):?>
					<div>					
						<?php echo wpautop(do_shortcode($gravity_engine->getContent($i)));?>
					</div>
			<?php endif;?>				

[/php]

Well, between the

you have a PHP line that echo’s the item. Just comment out the echo. Try it and let us know.
Sponsor our Newsletter | Privacy Policy | Terms of Service