our last post was quite detailed, but it’s not displaying here on the forum thread. this post is just to test the system.
Update, ok, maybe it had too much info. here is a shorter version:
OK, let’s back up a step.
First, any changes you make to your theme files will be overwritten the next time you update your theme. This is why it is highly recommended to use a child-theme. Fortunately your theme has one included.
Step two, open up your child-theme’s function.php file and past in the following php code:
function custom_mce_options( $init ) {
// Command separated string of extended elements
$ext = 'img[id|title|class|style|rel]';
// Add to extended_valid_elements if it already exists
if ( isset( $init['extended_valid_elements'] ) ) {
$init['extended_valid_elements'] .= ',' . $ext;
} else {
$init['extended_valid_elements'] = $ext;
}
// Super important: return $init!
return $init;
}
add_filter('tiny_mce_before_init', 'custom_mce_options');
Finally let us know if you get stuck or if this resolves your issue.
If this is a bit over your head and you would like assistance in setting this up, consider upgrading to collapse-pro-matic as it comes with a very high level of personal support. The support alone is worth the price of the upgrade.
-
This reply was modified 7 years, 7 months ago by twinpictures.