Home › Forums › Jevelin Theme › Incompatibility with TinyMCE Custom Styles [solution included]
Home › Forums › Jevelin Theme › Incompatibility with TinyMCE Custom Styles [solution included]
This theme doesn’t respect another plugins modifications in style_format drowdown.
To fix:
modify hooks.php around line 701
- $settings['style_formats'] = json_encode( $style_formats ); + // Add the array, JSON ENCODED, into 'style_formats', preserving anything already there + if (isset($settings['style_formats'])) { + + $json_decode_orig_settings = json_decode($settings['style_formats'], true); + + // Check to make sure incoming 'style_formats' is an array + if (is_array($json_decode_orig_settings)) { + $newArray = array_merge($json_decode_orig_settings, $style_formats); + $settings['style_formats'] = json_encode($newArray); + } + else { + $settings['style_formats'] = json_encode($style_formats); + } + + } else { + $settings['style_formats'] = json_encode($style_formats); + }
I created a patch for it.
Hi TommyChris,
I hope you are well today and thanks for helping out here by reporting this.
I have reported this to the Theme developer so that it will be considered to be implemented in the theme.
Your help here is really appreciated.
Best regards,
Shufflehound team
It is fixed in the following latest version of theme so please update the theme as described in this page https://support.shufflehound.com/updating-theme/
Please login to access this file