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
If you need services beyond standard support, we've got your back!
If you'd prefer not to handle the installation yourself or need help getting started, we'll set everything up for you.
We'll help you rearrange sections, adjust spacing, and modify the page structure to fit your needs.
More complex styling changes, theme option modifications, and third-party integrations.
If you need something that's not included in the theme, we can code it for you.
Web design services to create custom sections, pages, and blocks for your theme, plus graphics and visualizations.
Full website builds, custom theme development, or plugin creation from scratch.
We'll provide a clear quote based on what you need. No hidden fees.