Tag Info

New answers tagged


There are some things to try in this stackoverflow thread. The one I'm trying: add_filter('tiny_mce_before_init', 'vsl2014_filter_tiny_mce_before_init'); function vsl2014_filter_tiny_mce_before_init( $options ) { if ( ! isset( $options['extended_valid_elements'] ) ) { $options['extended_valid_elements'] = 'style'; } else { ...


wpautop can ignore the linkebreaks if you use wpautop( $content, false ); To pass a parameter to wpautop via add_filter, use an anonymous function. This snippets seems to work for me if I add it to my theme's functions.php: remove_filter( 'the_content', 'wpautop' ); $br = false; add_filter( 'the_content', function( $content ) use ( $br ) { return ...


The following workaround is based on the wpeditimage/plugin.js file in the core. You could enqueue it or test it with: add_action( 'admin_footer-post.php', function() {?><script> jQuery(window).load( function( $ ) { if( ! $( "#wp-content-wrap").hasClass("tmce-active" ) ) return; var editor = tinyMCE.activeEditor; ...


As you error messgae, check your theme functions.php file, line no 395, you may see there have some code like } endif; Just delete those code and I hope your problem will solve.


You can replace the broken functions.php file, recovering it from the original theme package. From the namespace of your error message I can guess that the theme you are using could be this: https://wordpress.org/themes/catch-box Right? I hope it helps.

Top 50 recent answers are included