• Resolved kamran1331

    (@kamran1331)


    Hi, i am using this code*. But with your plugin it’s little be buggy. Its shows double. Like my country select and + from your plug-in select2.

    *code

    /**
     * Serch Country Search Field in Checkout will be disable
     */
    add_action( 'wp_enqueue_scripts', function() {
        wp_dequeue_style( 'select2' );
        wp_dequeue_script( 'select2');
        wp_dequeue_script( 'selectWoo' );
    }, 11 );
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author ThemeHigh

    (@themehigh)

    Please add the below style in your Additional CSS file in order to resolve the issue.

    add_action( 'wp_enqueue_scripts', function() {
        wp_dequeue_style( 'select2' );
        wp_dequeue_script( 'select2');
        wp_dequeue_script( 'selectWoo' );
    }, 11 );

    Thank you!

    Thread Starter kamran1331

    (@kamran1331)

    Sorry i dont understood your answer.
    this code is PHP code.

    add_action( 'wp_enqueue_scripts', function() {
        wp_dequeue_style( 'select2' );
        wp_dequeue_script( 'select2');
        wp_dequeue_script( 'selectWoo' );
    }, 11 );

    What do you mean?

    Plugin Author ThemeHigh

    (@themehigh)

    Please check after adding the below style in your Additional CSS file.

    .checkout .select2{
        display: none!important;
    }

    Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘select2 country’ is closed to new replies.