Forum Replies Created

Viewing 8 replies - 31 through 38 (of 38 total)
  • Thread Starter John Garvin

    (@atomiccherry)

    Thanks for the quick reply. I’m sure I must be doing something incorrectly or there’s a theme conflict, however I’ve been using this plugin for awhile now and things only broke after the latest update. I’ve included a couple screenshots.

    From what I can tell, the CSS files I want to ignore are not being processed but neither are they showing up on the page. I’ve checked the source code for the processed CSS and files are definitely not being added to cached CSS file(s).

    Will keep testing on my end as time permits.
    screenshot
    screenshot 2

    Thread Starter John Garvin

    (@atomiccherry)

    Thanks for the quick reply. Just checked and paths are the same. I will do further testing to see if there are theme or plugin conflicts. Or if there is simply something I’m overlooking.

    I appreciate your help.

    Thread Starter John Garvin

    (@atomiccherry)

    Awesome news!! Thanks, Andrew.

    Thread Starter John Garvin

    (@atomiccherry)

    Hi Andrew,

    The custom styles are not being applied to all instances of the editor both within Tailor and otherwise. I’ve also tested without the TinyMCE Advanced plugin enabled as well.

    // Add button for Custom Style Formats to TinyMCE Editor
    add_filter( 'mce_buttons_2', 'slate_mce_buttons' );
    function slate_mce_buttons( $buttons ) {
        array_unshift( $buttons, 'styleselect' );
        return $buttons;
    }
    
    // Add Style Formats to TinyMCE Editor
    add_filter( 'tiny_mce_before_init', 'slate_mce_before_init' );
    function slate_mce_before_init( $settings ) {
    
        $style_formats = array(
    
          // some sample styles for example
          array(
            'title' => __( 'Headlines', 'slate' ),
            'items' => array(
              array(
            		'title'   	=> __( 'Underline', 'slate' ),
            		'selector' 	=> 'h2',
            		'classes' 	=> 'underscore'
            	),
              array(
            		'title'   	=> __( 'Split', 'slate' ),
            		'selector' 	=> 'h2',
            		'classes' 	=> 'split'
            	),
            ),
          ),
    
          array(
            'title'   => __( 'Separators', 'slate' ),
            'items' 	=> array(
              array(
            	'title'     => __( 'Tapered', 'slate' ),
            	'selector'  => 'hr',
            	'classes'   => 'taper'
            	),
              array(
                 'title'    => __( 'Inset', 'slate' ),
                 'selector' => 'hr',
                 'classes'  => 'inset'
            	),
              array(
                'title'   	=> __( 'Decorative', 'slate' ),
                'selector'  => 'hr',
                'classes' 	=> 'decorative'
              ),
            ),
          ),
    
        );
    
        $settings['style_formats'] = json_encode( $style_formats );
    
        return $settings;
    
    }
    Thread Starter John Garvin

    (@atomiccherry)

    Prior to 1.5.5 all custom TinyMCE editor format styles added via theme function with ‘tiny_mce_before_init’ filter are available (using TinyMCE Advanced plugin). With 1.5.5 they appear to default back to baseline style format options (or are being overwritten as @dameer.dj suggested).

    Currently backtracked and using 1.5.4 and custom style formats work as expected. I’ve tested with multiple themes, all plugins deactivated (except for Tailor and TinyMCE Advanced) and a couple different environments.

    P.S. Just want to say how much your hard work is appreciated and how seriously amazing this addition to the community is. Blows all other WP page builders out of the water. Will be donating to the cause again soon.

    Experiencing identical issue on both local dev environment (MAMP) and various shared hosting environments.

    Thread Starter John Garvin

    (@atomiccherry)

    Turns out the gallery quirk mentioned in my first comment was a theme conflict. Issue resolved.

    Thread Starter John Garvin

    (@atomiccherry)

    Definitely will do! Will test on a clean WP install on default theme and no additional plugins. Any bugs I will log an issue. Thanks again for such a killer plugin. 🙂

Viewing 8 replies - 31 through 38 (of 38 total)