Home › Forums › Front-end Issues › WYSIWYG Styling › Reply To: WYSIWYG Styling
I know it’s been a while for the rest of the commenters on this thread, but I found a way (maybe a little hacky) to do this. In my theme functions.php
file I added:
add_filter( 'tiny_mce_before_init', 'override_mp6_tinymce_styles' );
function override_mp6_tinymce_styles( $mce_init ) {
// make sure we don't override other custom <code>content_css</code> files
$content_css = get_stylesheet_directory_uri() . '/bd-editor.css';
if ( isset( $mce_init[ 'content_css' ] ) )
$content_css .= ',' . $mce_init[ 'content_css' ];
$mce_init[ 'content_css' ] = $content_css;
return $mce_init;
}
mp6 styling was getting in the way, so I hooked into the tiny_mce_before_init
filter to force my editor styles to load anyway. Hope this helps someone.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.