• Resolved jayharland

    (@jayharland)


    As the title states, on options pages created with Advanced Custom Fields, Widget Options CSS/JS loads and it makes ACF inputs appear wonky.

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Mej de Castro

    (@mej)

    Hi @jayharland,

    Thank you for reaching out!

    You may shoot over the screenshots and details to [email protected] and our team can review that with you!

    Kind Regards,
    Mej

    Thread Starter jayharland

    (@jayharland)

    I solved this on my own by removing the action that queues the stylesheets/scripts. If it helps anyone else:

    add_action('admin_enqueue_scripts', 'mysite_admin_dequeue_widget_options');
    function mysite_admin_dequeue_widget_options($hook){
        
        if(function_exists('widgetopts_load_admin_scripts')){
            
            // Check for ACF options pages
            if(function_exists('acf_get_options_pages')){
                $acf_options_pages = acf_get_options_pages();
                $hook = str_replace('toplevel_page_', '', $hook);
                if(array_key_exists($hook, $acf_options_pages)){
                    remove_action('admin_enqueue_scripts', 'widgetopts_load_admin_scripts', 100);
                }
            }
            
        }
    }
    Plugin Author Mej de Castro

    (@mej)

    Hi @jayharland,

    Glad to hear you’ve found a fix, and thank you for letting us know.

    Please do not hesitate to contact us if you need any assistance.

    Thank you!

    Kind Regards,
    Mej

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Widet Options select2 CSS interferes with other select2 CSS in WordPress admin’ is closed to new replies.