• Resolved Kanana

    (@kanana)


    Hi,

    First I’d like to mention that your extension is great !

    I’ve encountered an issue in the widget page. When I want to set up the sidebar location it appears a grey window and it loads undefinitely.
    I desactivated all the extensions and realized that there is a conflict with the extension named “Feature a Page Widget”. I really need both extensions. Do you have any idea of what cause the conflict ?

    Thanks for your help,

    Kanana

    https://www.ads-software.com/plugins/custom-sidebars/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi Kanana,

    I hope you are well today and thank you for your question.

    I could reproduce the conflict issue on my test site using latest version of Custom Sidebars plugin and the following Feature A Page Widget plugin.

    https://www.ads-software.com/plugins/feature-a-page-widget

    To resolve the issue please try changing the code in the following Feature A Page Widget plugin plugin on line number 60 as displayed below.

    Feature A Page Widget plugin file:
    wp-content/plugins/feature-a-page-widget/js/fpw_admin.js

    Before Editing:

    // Fire off chosen on save-widget callback, else the vanilla select reappears.
    // Thanks https://www.johngadbois.com/adding-your-own-callbacks-to-wordpress-ajax-requests/
    $(document).ajaxSuccess(function(e, xhr, settings) {
    
    	if(settings.data.search('action=save-widget') != -1 && settings.data.search('id_base=fpw_widget') != -1) {
    		// as of WP 3.6, the activeElement isn't within the widget anymore :( so this doesn't work.
    		// $widget = $(e.currentTarget.activeElement).parents('.widget');
    		// fpwSetChosen( $widget );
    		fpwActivateChosen();
    	}
    
    	if(settings.data.search('action=widgets-order') != -1) {
    		fpwActivateChosen();
    	}
    
    });

    After Editing:

    // Fire off chosen on save-widget callback, else the vanilla select reappears.
    // Thanks https://www.johngadbois.com/adding-your-own-callbacks-to-wordpress-ajax-requests/
    $(document).ajaxSuccess(function(e, xhr, settings) {
    	if (typeof settings.data.search == 'function') {
    	if(settings.data.search('action=save-widget') != -1 && settings.data.search('id_base=fpw_widget') != -1) {
    		// as of WP 3.6, the activeElement isn't within the widget anymore :( so this doesn't work.
    		// $widget = $(e.currentTarget.activeElement).parents('.widget');
    		// fpwSetChosen( $widget );
    		fpwActivateChosen();
    	}
    
    	if(settings.data.search('action=widgets-order') != -1) {
    		fpwActivateChosen();
    	}
    	}
    });

    Note: You are making changes in the plugin file and these changes will be overwritten and lost when you update the plugin and you will have to make these changes again after plugin updation.

    Best Regards,
    Vinod Dalvi

    Thread Starter Kanana

    (@kanana)

    It works like a charm!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom Sidebar Stuck at sidebar location’ is closed to new replies.