Incompatibility with TinyMCE Custom Styles [solution included]

Home Forums Jevelin Theme Incompatibility with TinyMCE Custom Styles [solution included]

Home Forums Jevelin Theme Incompatibility with TinyMCE Custom Styles [solution included]

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • TommyChris
    Participant

    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);
    +        }
    

     

    TommyChris
    Participant

    I created a patch for it.

    Attachments:
    You must be logged in to view attached files.

    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

Viewing 4 posts - 1 through 4 (of 4 total)

Popular choice

Professional Developers At Your Fingertips!

If you need services beyond standard support, we've got your back!

Services we offer:

Demo setup
Advanced customization
Layout adjustment
Graphic work / visualizations
Custom coding
Full WordPress development and design

Services

What we can offer

  • Demo setup +

    If you'd prefer not to handle the installation yourself or need help getting started, we'll set everything up for you.

  • Layout adjustment +

    We'll help you rearrange sections, adjust spacing, and modify the page structure to fit your needs.

  • Advanced customization +

    More complex styling changes, theme option modifications, and third-party integrations.

  • Custom coding +

    If you need something that's not included in the theme, we can code it for you.

  • Graphic work / visualizations +

    Web design services to create custom sections, pages, and blocks for your theme, plus graphics and visualizations.

  • Full WordPress development and design +

    Full website builds, custom theme development, or plugin creation from scratch.

  • About pricing +

    We'll provide a clear quote based on what you need. No hidden fees.

Professional Developers At Your Fingertips!

Custom Work Form