Created
December 18, 2019 21:25
-
-
Save joshfeck/864156850ab145c695c34a568a0ada1b to your computer and use it in GitHub Desktop.
Fix for the conference pro theme to avoid issues with html select fields.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Conference Pro theme select input fix | |
Description: Restores standard web browser behavior for html selects on a specific page (in this case, the checkout page) | |
Author: Event Espresso support | |
Version: 1.0 | |
*/ | |
add_action('wp_enqueue_scripts', 'my_remove_conf_pro_conflict_script', 99); | |
function my_remove_conf_pro_conflict_script() { | |
if (is_page('checkout')) { | |
wp_deregister_script('cpt-select'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment