• Resolved Jessica

    (@thejessicapage)


    Hi, I installed the plugin and it is great, but I also have some code in my functions php file to allow for a custom formatting menu drop down. Under settings / TinyMCE Advanced/ Editor Settings I am able to drag the formats drop down to the menu, it displays in the editor but none of the styles are showing up. So when you select the Formats drop down it is blank.
    I will include my php code below, it would be great if anyone could offer some assistance on how to get it to work with the plugin. Cause I dunno what to do. 8-/

    '//Add Drop Down Styles to the dashboard menu
    add_filter( 'mce_buttons_2', 'my_mce_buttons_2' );
    
    function my_mce_buttons_2( $buttons ) {
        array_unshift( $buttons, 'styleselect' );
        return $buttons;
    }
    
    //Add the custom styles to the dashboard menu
    add_filter( 'tiny_mce_before_init', 'my_mce_before_init' );
    
    function my_mce_before_init( $settings ) {
    
        $style_formats = array(
    	   array(
            	'title' => 'Page Heading',
            	'block' => 'span',
            	'classes' => 'page-heading',
            	'wrapper' => true
            )
        );
    
        $settings['style_formats'] = json_encode( $style_formats );
    
        return $settings;
    
    }

    https://wordpress.org/plugins/ultimate-tinymce/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Were you aware that this plugin has now been superseded by http://wordpress.org/plugins/wp-edit/

    Thread Starter Jessica

    (@thejessicapage)

    Nope, and I was looking for a delete button for this post because I figured out why it was not working.

    Under advanced options there is an option to select Load the CSS classes used in the editor-style.css and replace the formats buttons and sub-menu, when I unchecked that my styles were back. So its all good.
    😎

    Plugin Author Josh

    (@josh401)

    Thanks @esmi, Thanks @jessica.

    Please let me know if you encounter any further issues.

    Thread Starter Jessica

    (@thejessicapage)

    @josh, thank you. You have great response time and customer service. That is fabulous. @esmi I neglected to thank you for your response in the above post, sorry about that, thank you for taking the time to respond.

    No problem 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Formats Drop Down Menu Item No Longer Working’ is closed to new replies.