Skip to content

Instantly share code, notes, and snippets.

@joshfeck
Created December 18, 2019 21:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joshfeck/864156850ab145c695c34a568a0ada1b to your computer and use it in GitHub Desktop.
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.
<?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