Home › Forums › Front-end Issues › WYSIWYG Styling › Reply To: WYSIWYG Styling
Nevermind, solution found. I reordered the way css was loaded. Rather than load my editor CSS first, I loaded it last. I undersestimated how comprehensive the default editors CSS was, so I wasn’t seeing any of my “overiding” CSS. I changed the if statement to this:
$content_css = get_stylesheet_directory_uri() . '/bd-editor-style.css';
if ( isset( $mce_init[ 'content_css' ] ) ) {
$content_css_new = $mce_init[ 'content_css' ].','.$content_css;
}
$mce_init[ 'content_css' ] = $content_css_new;
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 Privacy Policy. If you continue to use this site, you consent to our use of cookies.