You can remove any option(s) from any drop-down using JavaScript. Look on the next code please:
1 2 3 4 5 6 7 8 9 10 | <script type="text/javascript"> jQuery(function () { jQuery(".mdf_taxonomy_pa_merk .mdf_taxonomy option").each(function () { var v = jQuery(this).val(); if (v == 74 || v == 202) { jQuery(this).remove(); } }); }); </script> |
css class '.mdf_taxonomy_pa_color' is container for drop-down with css class 'mdf_taxonomy' which makes filtration for taxonomy 'pa_color'. In construction 'if' set terms ids which you want to remove. You can drop this script in your footer.php
More:
- http://stackoverflow.com/questions/22988581/how-to-remove-all-options-from-a-dropdown-using-jquery-js
- http://www.w3resource.com/javascript-exercises/javascript-dom-exercise-8.php
- http://stackoverflow.com/questions/7601691/remove-item-from-dropdown-list-on-page-load-no-jquery