Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Nextendweb

    (@nextendweb)

    Hi!

    Is it happens when a slider published on the page you are editing, right? Or is it happens always without slider?

    Thread Starter Stephen S

    (@ssuess)

    Thanks for getting back to me. It happens on every page edit screen whether or not there is a slider embedded in that page.

    Plugin Author Nextendweb

    (@nextendweb)

    Hi!

    I made some tests and there was no strange loading when the Slider widget was not added by Page Builder. But when it was added, Page builder tried to render the sliders on the backend with no luck.

    I’m currently testing a fix for this one, you could try it yourself.

    Open the following file:

    \wp-content\plugins\smart-slider-2\widget.php

    and place the following code to the end of the file:

    class NextendSmartSlider2WidgetSiteoriginPanels extends NextendSmartSlider2Widget{
        public static function siteorigin_panels_widget_object($the_widget, $widget){
            if(get_class($the_widget) === 'NextendSmartSlider2Widget' && is_admin()){
                return new NextendSmartSlider2WidgetSiteoriginPanels();
            }
            return $the_widget;
        }
    
        function widget($args, $instance) {
    
            $title = apply_filters( 'widget_title', $instance['title'] );
    
        		echo $args['before_widget'];
        		if ( ! empty( $title ) )
        			echo $args['before_title'] . $title . $args['after_title'];
    
            echo "Smart Slider 2 - widget";
    
            echo $args['after_widget'];
        }
    }
    
    add_filter('siteorigin_panels_widget_object', 'NextendSmartSlider2WidgetSiteoriginPanels::siteorigin_panels_widget_object', 10, 2);

    Then you might need to update your pages, where the slider published with Page Builder.

    It could be great if you could tell me about your result with the attached code!

    Thread Starter Stephen S

    (@ssuess)

    Thanks again for getting back to me, but I don’t think you understand my problem:

    The buttons for the page builder are misshapen and mis-aligned when your plugin is active. They are formatted correctly when your plugin is deactivated.

    Here is what they look like side by side, with your plugin activated (left) and your plugin deactivated (right): image

    Thanks!

    Plugin Author Nextendweb

    (@nextendweb)

    Ah, well ?? I was able to fix that issue too. Just pushed out an update, just update to version 2.3.11 and everything should be fine.

    Thread Starter Stephen S

    (@ssuess)

    You fixed it, thank you!!

    Thread Starter Stephen S

    (@ssuess)

    I just upgraded to the full paid version and this exact problem came back. Is there an easy way to fix it? (And is the latest version of the full product still 2.3.10? Because that is what I was able to download and what shows). thanks.

    Plugin Author Gabor

    (@nextendweb_gabor)

    Hi Stephen!

    We only put this into the trial version yet, you could fix it by opening up this file:
    \wp-content\plugins\nextend-smart-slider2-full\tinymce\shortcode.php

    Look for this part:

    wp_enqueue_script('jquery-ui-dialog');
    wp_enqueue_style('jquery-ui', plugin_dir_url(__FILE__) . 'jquery-ui.min.css');
    wp_enqueue_style('jquery-ui-core', plugin_dir_url(__FILE__) . 'jquery.ui.core.min.css');
    wp_enqueue_style('jquery-ui-theme', plugin_dir_url(__FILE__) . 'jquery.ui.theme.min.css');
    wp_enqueue_style('jquery-ui-dialog', plugin_dir_url(__FILE__) . 'jquery.ui.dialog.min.css');
    wp_enqueue_style('jquery-ui-button', plugin_dir_url(__FILE__) . 'jquery.ui.button.min.css');
    wp_enqueue_style('jquery-ui-nextend', plugin_dir_url(__FILE__) . 'jquery.ui.nextend.css');

    And change it to this:

    wp_enqueue_script('jquery-ui-dialog');
    wp_enqueue_style('wp-jquery-ui-dialog');
    wp_enqueue_style('jquery-ui-nextend', plugin_dir_url(__FILE__) . 'jquery.ui.nextend.css');

    Thread Starter Stephen S

    (@ssuess)

    Great that seems to have fixed it, thanks!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘disable CSS on other admin pages?’ is closed to new replies.